FIX: raise warning dialog when show on mac

Change-Id: I5c6eaf88eed9430c053d38f747eee3289e08927b
This commit is contained in:
tao.jin 2022-12-02 10:00:32 +08:00 committed by Lane.Wei
parent 81e2200efb
commit 7a5cd8ddd7
1 changed files with 5 additions and 1 deletions

View File

@ -479,7 +479,7 @@ void SecondaryCheckDialog::on_show()
m_button_cancel->GetEventHandler()->ProcessEvent(evt_cancel);
this->Show();
this->SetFocus();
this->Raise();
}
void SecondaryCheckDialog::on_hide()
@ -488,6 +488,10 @@ void SecondaryCheckDialog::on_hide()
wxGetApp().app_config->set(show_again_config_text, "1");
this->Hide();
if (wxGetApp().mainframe != nullptr) {
wxGetApp().mainframe->Show();
wxGetApp().mainframe->Raise();
}
}
void SecondaryCheckDialog::update_btn_label(wxString ok_btn_text, wxString cancel_btn_text)