Gui: Add setting enabling workbench selector to be on the menubar. Restart required.

This commit is contained in:
Paddle
2022-11-02 19:03:26 +01:00
committed by WandererFan
parent e75ffa0566
commit c87c4bbd9f
6 changed files with 118 additions and 8 deletions

View File

@@ -768,9 +768,12 @@ ToolBarItem* StdWorkbench::setupToolBars() const
<< "Std_Refresh" << "Separator" << "Std_WhatsThis";
// Workbench switcher
auto wb = new ToolBarItem( root );
wb->setCommand("Workbench");
*wb << "Std_Workbench";
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/MainWindow");
if (hGrp->GetBool("WSToolbar", true)) {
auto wb = new ToolBarItem(root);
wb->setCommand("Workbench");
*wb << "Std_Workbench";
}
// Macro
auto macro = new ToolBarItem( root );