Gui: Fix broken toolbars layout due to MaterialWorkbench

The explicit activation of the MaterialWorkbench breaks the toolbars layout for every start. When fixing it manually it will be broken
again after the next start.

Because the core doesn't depend on the Material module it's a no-go to add an explicit runtime dependency to the corresponding workbench.

Since the Part module depends on the Materials module and the PartGui on MatGui the correct way is to let Part an PartGui load their
dependencies.
This commit is contained in:
wmayer
2024-04-05 00:31:50 +02:00
committed by wwmayer
parent d5cfdb1f1e
commit b09289471d
3 changed files with 9 additions and 3 deletions

View File

@@ -451,9 +451,6 @@ void StartupPostProcess::showMainWindow()
void StartupPostProcess::activateWorkbench()
{
// Always activate the material workbench
guiApp.activateWorkbench("MaterialWorkbench");
// Activate the correct workbench
std::string start = App::Application::Config()["StartWorkbench"];
Base::Console().Log("Init: Activating default workbench %s\n", start.c_str());