From 7a5cd8ddd7736965984e7e858d54d12d2f1e5c8e Mon Sep 17 00:00:00 2001 From: "tao.jin" Date: Fri, 2 Dec 2022 10:00:32 +0800 Subject: [PATCH] FIX: raise warning dialog when show on mac Change-Id: I5c6eaf88eed9430c053d38f747eee3289e08927b --- src/slic3r/GUI/ReleaseNote.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/ReleaseNote.cpp b/src/slic3r/GUI/ReleaseNote.cpp index fddd22af2e..35e59680a1 100644 --- a/src/slic3r/GUI/ReleaseNote.cpp +++ b/src/slic3r/GUI/ReleaseNote.cpp @@ -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)