Sketcher: Prevent non-edit toolbars from showing up when switching tab (#24202)

* Sketcher: Prevent non-edit toolbars from showing up when switching tab

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
PaddleStroke
2025-09-30 18:36:27 +02:00
committed by GitHub
parent edb36a6a5b
commit 2c1accaa59

View File

@@ -195,6 +195,9 @@ void Workbench::activated()
if (isSketchInEdit(doc)) {
Gui::ToolBarManager::getInstance()->setState(editModeToolbarNames(),
Gui::ToolBarManager::State::ForceAvailable);
Gui::ToolBarManager::getInstance()->setState(nonEditModeToolbarNames(),
Gui::ToolBarManager::State::ForceHidden);
}
}