Skip to content

Commit

Permalink
Moved items in the Help menubar
Browse files Browse the repository at this point in the history
  • Loading branch information
OfficialKris authored and maxwxyz committed Nov 15, 2024
1 parent 3578d1f commit 4e0f318
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
11 changes: 6 additions & 5 deletions src/Gui/Workbench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -758,11 +758,12 @@ MenuItem* StdWorkbench::setupMenuBar() const
// Help
auto help = new MenuItem( menuBar );
help->setCommand("&Help");
*help << "Std_OnlineHelp" << "Std_FreeCADWebsite" << "Std_FreeCADDonation"
<< "Std_FreeCADUserHub" << "Std_FreeCADPowerUserHub"
<< "Std_PythonHelp" << "Std_FreeCADForum" << "Std_FreeCADFAQ"
<< "Std_ReportBug" << "Std_About" << "Std_WhatsThis"
<< "Std_RestartInSafeMode";
*help << "Std_OnlineHelp" << "Std_WhatsThis" << "Separator"
// Start page and additional separator are dynamically inserted here
<< "Std_FreeCADUserHub" << "Std_FreeCADForum" << "Std_FreeCADFAQ" << "Std_ReportBug" << "Separator"
<< "Std_RestartInSafeMode" << "Separator"
<< "Std_FreeCADPowerUserHub" << "Std_PythonHelp" << "Separator"
<< "Std_FreeCADWebsite" << "Std_FreeCADDonation" << "Std_About";

return menuBar;
}
Expand Down
6 changes: 5 additions & 1 deletion src/Mod/Start/Gui/Manipulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ void StartGui::Manipulator::modifyMenuBar(Gui::MenuItem* menuBar)

Gui::MenuItem* helpMenu = menuBar->findItem("&Help");
Gui::MenuItem* loadStart = new Gui::MenuItem();
Gui::MenuItem* loadSeparator = new Gui::MenuItem();
loadStart->setCommand("Start_Start");
helpMenu->appendItem(loadStart);
loadSeparator->setCommand("Separator");
Gui::MenuItem* firstItem = helpMenu->findItem("Std_FreeCADUserHub");
helpMenu->insertItem(firstItem, loadStart);
helpMenu->insertItem(firstItem, loadSeparator);
}

0 comments on commit 4e0f318

Please sign in to comment.