FIX: Revert "[STUDIO-2186] hide PopupWindow on alt-tab"

This reverts commit 3b8c11659a6cf3062ad27772348b84be5001a4f6.

Reason for revert: update pick

Change-Id: Id991af5b4a5950ee76ecf59176eabc72c885db88
This commit is contained in:
战马 authored and Lane.Wei committed 2023-02-22 20:09:17 +08:00
1 parent 5c61c834b0
commit 5f69f4c016
23 files changed
+70 -139

No files matched your search

+3 -3
View File
@@ -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)
: PopupWindow(parent, wxBORDER_NONE | wxPU_CONTAINS_CONTROLS), searcher(searcher)
: wxPopupTransientWindow(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);
PopupWindow::Popup();
wxPopupTransientWindow::Popup();
search_line->SetFocus();
update_list();
}
@@ -649,7 +649,7 @@ void SearchDialog::Dismiss()
void SearchDialog::Die()
{
PopupWindow::Dismiss();
wxPopupTransientWindow::Dismiss();
wxCommandEvent event(wxCUSTOMEVT_EXIT_SEARCH);
wxPostEvent(search_line, event);
}