mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-21 22:53:43 +00:00
Long live jobsets!
This commit is contained in:
parent
25d794b405
commit
40ade0b9f1
@ -253,7 +253,6 @@ ADVANCED_CFG::ADVANCED_CFG()
|
||||
m_EnableDesignBlocks = true;
|
||||
m_EnableGenerators = false;
|
||||
m_EnableGit = false;
|
||||
m_EnableJobset = true;
|
||||
m_EnableLibWithText = false;
|
||||
m_EnableLibDir = false;
|
||||
|
||||
@ -488,9 +487,6 @@ void ADVANCED_CFG::loadSettings( wxConfigBase& aCfg )
|
||||
configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::EnableGit,
|
||||
&m_EnableGit, m_EnableGit ) );
|
||||
|
||||
configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::EnableJobset,
|
||||
&m_EnableJobset, m_EnableJobset ) );
|
||||
|
||||
configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::EnableLibWithText,
|
||||
&m_EnableLibWithText, m_EnableLibWithText ) );
|
||||
|
||||
|
@ -482,15 +482,6 @@ public:
|
||||
*/
|
||||
bool m_EnableGit;
|
||||
|
||||
/**
|
||||
* Enable jobsets
|
||||
*
|
||||
* Setting name: "EnableJobset"
|
||||
* Valid values: 0 or 1
|
||||
* Default value: 1
|
||||
*/
|
||||
bool m_EnableJobset;
|
||||
|
||||
/**
|
||||
* Enable option to load lib files with text editor.
|
||||
*
|
||||
|
@ -738,11 +738,6 @@ bool KICAD_MANAGER_FRAME::CloseProject( bool aSave )
|
||||
void KICAD_MANAGER_FRAME::OpenJobsFile( const wxFileName& aFileName, bool aCreate,
|
||||
bool aResaveProjectPreferences )
|
||||
{
|
||||
if( !ADVANCED_CFG::GetCfg().m_EnableJobset )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
for( size_t i = 0; i < m_notebook->GetPageCount(); i++ )
|
||||
{
|
||||
if( PANEL_JOBS* panel = dynamic_cast<PANEL_JOBS*>( m_notebook->GetPage( i ) ) )
|
||||
|
@ -90,12 +90,9 @@ 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 );
|
||||
}
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user