mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Refresh the page tree immediately after key press.
This commit is contained in:
parent
b15023dfa9
commit
2583522e43
1 changed files with 2 additions and 11 deletions
|
@ -304,21 +304,12 @@ void Tab::create_preset_tab()
|
||||||
m_page_switch_running = true;
|
m_page_switch_running = true;
|
||||||
do {
|
do {
|
||||||
m_page_switch_planned = false;
|
m_page_switch_planned = false;
|
||||||
|
m_treectrl->Update();
|
||||||
} while (this->tree_sel_change_delayed());
|
} while (this->tree_sel_change_delayed());
|
||||||
m_page_switch_running = false;
|
m_page_switch_running = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_treectrl->Update();
|
|
||||||
});
|
});
|
||||||
#if 0
|
|
||||||
m_treectrl->Bind(wxEVT_IDLE, [this](wxIdleEvent&) {
|
|
||||||
if (m_page_switch_planned) {
|
|
||||||
do {
|
|
||||||
m_page_switch_planned = false;
|
|
||||||
} while (this->tree_sel_change_delayed());
|
|
||||||
}
|
|
||||||
});
|
|
||||||
#endif
|
|
||||||
|
|
||||||
m_treectrl->Bind(wxEVT_KEY_DOWN, &Tab::OnKeyDown, this);
|
m_treectrl->Bind(wxEVT_KEY_DOWN, &Tab::OnKeyDown, this);
|
||||||
|
|
||||||
|
@ -437,7 +428,7 @@ void Tab::OnActivate()
|
||||||
#endif // __WXOSX__
|
#endif // __WXOSX__
|
||||||
|
|
||||||
// create controls on active page
|
// create controls on active page
|
||||||
activate_selected_page();
|
activate_selected_page([](){});
|
||||||
// m_active_page->Show();
|
// m_active_page->Show();
|
||||||
m_hsizer->Layout();
|
m_hsizer->Layout();
|
||||||
Refresh();
|
Refresh();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue