Fixed bug where deactivated PaneWidgets were still visible after state restoration

This commit is contained in:
Nav
2022-08-14 17:37:25 +01:00
parent 6083e3eb01
commit cb33f33ba9
3 changed files with 23 additions and 9 deletions

View File

@@ -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();
}
}