Fix search panel not remembering visibility
Fixes https://gitlab.com/kicad/code/kicad/-/issues/12494
This commit is contained in:
parent
59d62f7df1
commit
2490ad1458
|
@ -203,10 +203,10 @@ TOOL_ACTION ACTIONS::activatePointEditor( "common.Control.activatePointEditor",
|
|||
TOOL_ACTION ACTIONS::changeEditMethod( "common.Interactive.changeEditMethod", AS_GLOBAL,
|
||||
MD_CTRL + ' ', "", _( "Change Edit Method" ), _( "Change edit method constraints" ) );
|
||||
|
||||
TOOL_ACTION ACTIONS::search( "common.Interactive.search",
|
||||
TOOL_ACTION ACTIONS::showSearch( "common.Interactive.search",
|
||||
AS_GLOBAL,
|
||||
MD_CTRL + 'G', LEGACY_HK_NAME( "Search" ),
|
||||
_( "Find" ), _( "Search for items" ),
|
||||
_( "Show Search Panel" ), _( "Show/hide the search panel" ),
|
||||
BITMAPS::find );
|
||||
|
||||
TOOL_ACTION ACTIONS::find( "common.Interactive.find",
|
||||
|
|
|
@ -74,7 +74,7 @@ public:
|
|||
static TOOL_ACTION deleteTool;
|
||||
|
||||
// Find and Replace
|
||||
static TOOL_ACTION search;
|
||||
static TOOL_ACTION showSearch;
|
||||
static TOOL_ACTION find;
|
||||
static TOOL_ACTION findAndReplace;
|
||||
static TOOL_ACTION findNext;
|
||||
|
|
|
@ -1161,6 +1161,7 @@ void PCB_EDIT_FRAME::LoadSettings( APP_SETTINGS_BASE* aCfg )
|
|||
{
|
||||
m_show_layer_manager_tools = cfg->m_AuiPanels.show_layer_manager;
|
||||
m_show_properties = cfg->m_AuiPanels.show_properties;
|
||||
m_show_search = cfg->m_AuiPanels.show_search;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1177,7 +1178,8 @@ void PCB_EDIT_FRAME::SaveSettings( APP_SETTINGS_BASE* aCfg )
|
|||
cfg->m_AuiPanels.show_layer_manager = m_show_layer_manager_tools;
|
||||
cfg->m_AuiPanels.right_panel_width = m_appearancePanel->GetSize().x;
|
||||
cfg->m_AuiPanels.appearance_panel_tab = m_appearancePanel->GetTabIndex();
|
||||
cfg->m_AuiPanels.show_properties = m_show_properties;
|
||||
cfg->m_AuiPanels.show_properties = m_show_properties;
|
||||
cfg->m_AuiPanels.show_search = m_show_search;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -127,6 +127,7 @@ public:
|
|||
int right_panel_width;
|
||||
bool show_layer_manager;
|
||||
bool show_properties;
|
||||
bool show_search;
|
||||
};
|
||||
|
||||
struct DIALOG_CLEANUP
|
||||
|
|
|
@ -1599,7 +1599,7 @@ void BOARD_EDITOR_CONTROL::setTransitions()
|
|||
Go( &BOARD_EDITOR_CONTROL::PageSettings, ACTIONS::pageSettings.MakeEvent() );
|
||||
Go( &BOARD_EDITOR_CONTROL::Plot, ACTIONS::plot.MakeEvent() );
|
||||
|
||||
Go( &BOARD_EDITOR_CONTROL::Search, ACTIONS::search.MakeEvent() );
|
||||
Go( &BOARD_EDITOR_CONTROL::Search, ACTIONS::showSearch.MakeEvent() );
|
||||
Go( &BOARD_EDITOR_CONTROL::Find, ACTIONS::find.MakeEvent() );
|
||||
Go( &BOARD_EDITOR_CONTROL::FindNext, ACTIONS::findNext.MakeEvent() );
|
||||
|
||||
|
|
|
@ -842,11 +842,6 @@ TOOL_ACTION PCB_ACTIONS::showProperties( "pcbnew.Control.showProperties",
|
|||
_( "Show Properties Panel" ), _( "Show/hide the properties panel" ),
|
||||
BITMAPS::tools );
|
||||
|
||||
TOOL_ACTION PCB_ACTIONS::showSearch( "pcbnew.Control.showSearch",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Show Search Panel" ), _( "Show/hide the search panel" ),
|
||||
BITMAPS::tools );
|
||||
|
||||
TOOL_ACTION PCB_ACTIONS::flipBoard( "pcbnew.Control.flipBoard",
|
||||
AS_GLOBAL, 0, "",
|
||||
_( "Flip Board View" ), _( "View board from the opposite side" ),
|
||||
|
|
|
@ -368,7 +368,6 @@ public:
|
|||
|
||||
static TOOL_ACTION showLayersManager;
|
||||
static TOOL_ACTION showProperties;
|
||||
static TOOL_ACTION showSearch;
|
||||
static TOOL_ACTION showPythonConsole;
|
||||
|
||||
// Module editor tools
|
||||
|
|
Loading…
Reference in New Issue