FIX: raise warning dialog when show on mac
Change-Id: I5c6eaf88eed9430c053d38f747eee3289e08927b
This commit is contained in:
parent
81e2200efb
commit
7a5cd8ddd7
|
@ -479,7 +479,7 @@ void SecondaryCheckDialog::on_show()
|
||||||
m_button_cancel->GetEventHandler()->ProcessEvent(evt_cancel);
|
m_button_cancel->GetEventHandler()->ProcessEvent(evt_cancel);
|
||||||
|
|
||||||
this->Show();
|
this->Show();
|
||||||
this->SetFocus();
|
this->Raise();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SecondaryCheckDialog::on_hide()
|
void SecondaryCheckDialog::on_hide()
|
||||||
|
@ -488,6 +488,10 @@ void SecondaryCheckDialog::on_hide()
|
||||||
wxGetApp().app_config->set(show_again_config_text, "1");
|
wxGetApp().app_config->set(show_again_config_text, "1");
|
||||||
|
|
||||||
this->Hide();
|
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)
|
void SecondaryCheckDialog::update_btn_label(wxString ok_btn_text, wxString cancel_btn_text)
|
||||||
|
|
Loading…
Reference in New Issue