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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user