mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 14:44:19 -06:00
Removed unnecessary conditions that interfere with the search.
This commit is contained in:
parent
7acaf58c15
commit
c7051c9005
2 changed files with 2 additions and 2 deletions
|
@ -1985,7 +1985,7 @@ void MainFrame::select_tab(size_t tab/* = size_t(-1)*/)
|
||||||
m_main_sizer->Show(m_tabpanel, tab != 0);
|
m_main_sizer->Show(m_tabpanel, tab != 0);
|
||||||
|
|
||||||
// plater should be focused for correct navigation inside search window
|
// plater should be focused for correct navigation inside search window
|
||||||
if (tab == 0 && m_plater->canvas3D()->is_search_pressed())
|
if (tab == 0)
|
||||||
m_plater->SetFocus();
|
m_plater->SetFocus();
|
||||||
Layout();
|
Layout();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1172,7 +1172,7 @@ void Tab::activate_option(const std::string& opt_key, const wxString& category)
|
||||||
wxString page_title = translate_category(category, m_type);
|
wxString page_title = translate_category(category, m_type);
|
||||||
|
|
||||||
auto cur_item = m_treectrl->GetFirstVisibleItem();
|
auto cur_item = m_treectrl->GetFirstVisibleItem();
|
||||||
if (!cur_item || !m_treectrl->IsVisible(cur_item))
|
if (!cur_item)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
while (cur_item) {
|
while (cur_item) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue