Gui: Add ability to easily lock Toolbars from UI

This adds the Std_ToggleToolBarLock action mentioned in #4992. It is
exposed in the context menu of toolbar and also in the view -> toolbars
app menu.
This commit is contained in:
Kacper Donat
2023-11-30 22:47:15 +01:00
committed by wwmayer
parent 9e1639783e
commit afd72f3585
5 changed files with 78 additions and 8 deletions

View File

@@ -1387,6 +1387,10 @@ void MainWindow::onToolBarMenuAboutToShow()
menu->addAction(action);
}
}
menu->addSeparator();
Application::Instance->commandManager().getCommandByName("Std_ToggleToolBarLock")->addTo(menu);
}
void MainWindow::onDockWindowMenuAboutToShow()