mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
FIX: [STUDIO-2186] hide PopupWindow on alt-tab
Change-Id: Ie1bffdd9ace2c6e05979743da9f75ca2c1e87cf3
This commit is contained in:
parent
6faecbf718
commit
81dea77932
23 changed files with 139 additions and 70 deletions
|
@ -522,7 +522,7 @@ static const std::map<const char, int> icon_idxs = {
|
|||
};
|
||||
|
||||
SearchDialog::SearchDialog(OptionsSearcher *searcher, Preset::Type type, wxWindow *parent, TextInput *input, wxWindow *search_btn)
|
||||
: wxPopupTransientWindow(parent, wxBORDER_NONE | wxPU_CONTAINS_CONTROLS), searcher(searcher)
|
||||
: PopupWindow(parent, wxBORDER_NONE | wxPU_CONTAINS_CONTROLS), searcher(searcher)
|
||||
{
|
||||
m_event_tag = parent;
|
||||
search_line = input;
|
||||
|
@ -622,7 +622,7 @@ void SearchDialog::Popup(wxPoint position /*= wxDefaultPosition*/)
|
|||
search_line->GetTextCtrl()->SetValue(wxString(""));
|
||||
//const std::string &line = searcher->search_string();
|
||||
//searcher->search(into_u8(line), true);
|
||||
wxPopupTransientWindow::Popup();
|
||||
PopupWindow::Popup();
|
||||
search_line->SetFocus();
|
||||
update_list();
|
||||
}
|
||||
|
@ -649,7 +649,7 @@ void SearchDialog::Dismiss()
|
|||
|
||||
void SearchDialog::Die()
|
||||
{
|
||||
wxPopupTransientWindow::Dismiss();
|
||||
PopupWindow::Dismiss();
|
||||
wxCommandEvent event(wxCUSTOMEVT_EXIT_SEARCH);
|
||||
wxPostEvent(search_line, event);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue