mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Fix bug causing wrong-fire of ViewportCommand::Visible (#5244)
Fix: variable name issue I'm not sure, if there's any particular reason to do `self.active` . I thought `self.visible` was the original intention.
This commit is contained in:
@@ -728,7 +728,7 @@ impl ViewportBuilder {
|
||||
}
|
||||
|
||||
if let Some(new_visible) = new_visible {
|
||||
if Some(new_visible) != self.active {
|
||||
if Some(new_visible) != self.visible {
|
||||
self.visible = Some(new_visible);
|
||||
commands.push(ViewportCommand::Visible(new_visible));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user