Core: Overlay: Improve AutoTask mode (#26768)

This commit is contained in:
PaddleStroke
2026-01-22 20:24:29 +01:00
committed by GitHub
parent 3fdf405ce8
commit e9c5feb40d
3 changed files with 11 additions and 0 deletions

View File

@@ -1249,6 +1249,10 @@ bool OverlayTabWidget::checkAutoHide() const
&& (!Control().taskPanel() || Control().taskPanel()->isEmpty(false));
}
if (autoMode == AutoMode::TaskShow) {
return (!Control().taskPanel() || Control().taskPanel()->isEmpty());
}
if (autoMode == AutoMode::EditHide && Application::Instance->editDocument()) {
return true;
}