7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 00:21:25 +00:00

Reorganise jobset menu entries

They were mixed in with the project open / close / new menu items
This commit is contained in:
JamesJCode 2025-01-01 16:09:41 +00:00
parent feca4176c0
commit 3e1fd974dc

View File

@ -81,12 +81,6 @@ void KICAD_MANAGER_FRAME::doReCreateMenuBar()
fileMenu->Add( KICAD_MANAGER_ACTIONS::newFromRepository );
}
if( ADVANCED_CFG::GetCfg().m_EnableJobset )
{
fileMenu->Add( KICAD_MANAGER_ACTIONS::newJobsetFile );
fileMenu->Add( KICAD_MANAGER_ACTIONS::openJobsetFile );
}
if( wxDir::Exists( PATHS::GetStockDemosPath() ) )
{
fileMenu->Add( KICAD_MANAGER_ACTIONS::openDemoProject );
@ -96,6 +90,13 @@ void KICAD_MANAGER_FRAME::doReCreateMenuBar()
wxMenuItem* item = fileMenu->Add( openRecentMenu->Clone() );
if( ADVANCED_CFG::GetCfg().m_EnableJobset )
{
fileMenu->AppendSeparator();
fileMenu->Add( KICAD_MANAGER_ACTIONS::newJobsetFile );
fileMenu->Add( KICAD_MANAGER_ACTIONS::openJobsetFile );
}
// Add the file menu condition here since it needs the item ID for the submenu
ACTION_CONDITIONS cond;
cond.Enable( FILE_HISTORY::FileHistoryNotEmpty( fileHistory ) );