Fix check state of the auto hide button

when dragging the container into a floating window
This commit is contained in:
Syarif Fakhri
2022-09-06 17:59:56 +08:00
parent fde133c25e
commit 052d3cecb9
4 changed files with 17 additions and 9 deletions

View File

@@ -800,6 +800,15 @@ void CDockAreaWidget::markTitleBarMenuOutdated()
}
//============================================================================
void CDockAreaWidget::updateAutoHidebuttonCheckState()
{
auto autoHideButton = titleBarButton(TitleBarButtonAutoHide);
autoHideButton->blockSignals(true);
autoHideButton->setChecked(isOverlayed());
autoHideButton->blockSignals(false);
}
//============================================================================
void CDockAreaWidget::saveState(QXmlStreamWriter& s) const