mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 02:37:51 -06:00
FIX:fixed clicking on first item has no effect in search dialog
Change-Id: Ifdbbf06a8b5c780155e394003470f6fa39a2b4c2
This commit is contained in:
parent
efec8fef2f
commit
0761cbd1cb
2 changed files with 3 additions and 3 deletions
|
@ -365,8 +365,8 @@ void OptionsSearcher::show_dialog(Preset::Type type, wxWindow *parent, wxTextCtr
|
|||
{
|
||||
if (parent == nullptr || input == nullptr) return;
|
||||
auto search_dialog = new SearchDialog(this, type, parent, input, ssearch_btn);
|
||||
wxPoint pos = parent->ClientToScreen(wxPoint(0, 0));
|
||||
pos.y += parent->GetRect().height;
|
||||
wxPoint pos = input->GetParent()->ClientToScreen(wxPoint(0, 0));
|
||||
pos.y += input->GetParent()->GetRect().height;
|
||||
search_dialog->SetPosition(pos);
|
||||
search_dialog->Popup();
|
||||
}
|
||||
|
|
|
@ -316,7 +316,7 @@ void Tab::create_preset_tab()
|
|||
this->GetParent()->Update();
|
||||
this->GetParent()->Layout();
|
||||
|
||||
wxGetApp().plater()->search(false, m_type, m_search_item, m_search_input, m_btn_search);
|
||||
wxGetApp().plater()->search(false, m_type, m_top_panel->GetParent(), m_search_input, m_btn_search);
|
||||
m_search_input->SetFocus();
|
||||
Thaw();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue