Gui: Save defaults layout after first launch

This commit is contained in:
Kacper Donat
2025-11-19 15:23:12 +01:00
committed by Chris Hennes
parent 1cf6f5f3a6
commit d1a8f99509
2 changed files with 7 additions and 0 deletions

View File

@@ -889,6 +889,9 @@ void OverlayTabWidget::restore(ParameterGrp::handle handle)
getSplitter()->setSizes(sizes);
hGrp = handle;
// if updated save the state into settings to preserve layout in case of defaults change
saveTabs();
}
void OverlayTabWidget::saveTabs()

View File

@@ -716,6 +716,10 @@ void TaskView::removeDialog()
}
void TaskView::setShowTaskWatcher(bool show)
{
if (showTaskWatcher == show) {
return;
}
showTaskWatcher = show;
if (show) {
addTaskWatcher();