Removed unnecessary state restoration of PanelWidgets
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -33,6 +33,8 @@ namespace Bloom::Widgets
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
this->setLayout(layout);
|
||||
}
|
||||
|
||||
this->setSize(this->state.size);
|
||||
}
|
||||
|
||||
void PanelWidget::setMinimumResize(int minimumResize) {
|
||||
|
||||
Reference in New Issue
Block a user