mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-01 02:21:26 +02:00
Merge pull request #4640 from leoetlino/panic-alerts-on-top
DolphinWX: Always keep panic alerts on top
This commit is contained in:
commit
1debc8eea1
@ -707,8 +707,9 @@ void CFrame::OnHostMessage(wxCommandEvent& event)
|
|||||||
{
|
{
|
||||||
wxString caption = event.GetString().BeforeFirst(':');
|
wxString caption = event.GetString().BeforeFirst(':');
|
||||||
wxString text = event.GetString().AfterFirst(':');
|
wxString text = event.GetString().AfterFirst(':');
|
||||||
bPanicResult = (wxYES == wxMessageBox(text, caption, event.GetInt() ? wxYES_NO : wxOK,
|
bPanicResult =
|
||||||
wxWindow::FindFocus()));
|
(wxYES == wxMessageBox(text, caption, wxSTAY_ON_TOP | (event.GetInt() ? wxYES_NO : wxOK),
|
||||||
|
wxWindow::FindFocus()));
|
||||||
panic_event.Set();
|
panic_event.Set();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -360,7 +360,8 @@ bool wxMsgAlert(const char* caption, const char* text, bool yes_no, int /*Style*
|
|||||||
npd->AppendChat("/!\\ " + std::string{text});
|
npd->AppendChat("/!\\ " + std::string{text});
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return wxYES == wxMessageBox(StrToWxStr(text), StrToWxStr(caption), (yes_no) ? wxYES_NO : wxOK,
|
return wxYES == wxMessageBox(StrToWxStr(text), StrToWxStr(caption),
|
||||||
|
wxSTAY_ON_TOP | ((yes_no) ? wxYES_NO : wxOK),
|
||||||
wxWindow::FindFocus());
|
wxWindow::FindFocus());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user