Removed unnecessary state restoration of PanelWidgets

This commit is contained in:
Nav
2022-08-14 23:24:29 +01:00
parent 52c165a72d
commit afe6fe3ef4
2 changed files with 2 additions and 11 deletions

View File

@@ -384,17 +384,6 @@ namespace Bloom
this->createPanes();
const auto& lastLeftPanelState = this->insightProjectSettings.leftPanelState;
const auto& lastBottomPanelState = this->insightProjectSettings.bottomPanelState;
if (lastLeftPanelState.has_value() && this->leftPanel != nullptr) {
this->leftPanel->setSize(lastLeftPanelState->size);
}
if (lastBottomPanelState.has_value()) {
this->bottomPanel->setSize(lastBottomPanelState->size);
}
this->setUiDisabled(this->targetState != TargetState::STOPPED);
this->activated = true;
emit this->activatedSignal();