Fixed bug where deactivated PaneWidgets were still visible after state restoration
This commit is contained in:
@@ -188,12 +188,18 @@ namespace Bloom::Widgets
|
||||
);
|
||||
|
||||
// Restore the state
|
||||
if (!this->state.attached) {
|
||||
if (this->state.attached) {
|
||||
this->attach();
|
||||
|
||||
} else {
|
||||
this->detach();
|
||||
}
|
||||
|
||||
if (this->state.activated) {
|
||||
this->activate();
|
||||
|
||||
} else {
|
||||
this->deactivate();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user