CFrame: Always exit fullscreen before showing the stop dialog.
This commit is contained in:
parent
857c116210
commit
b67ec4ea58
|
@ -1099,6 +1099,9 @@ void CFrame::DoStop()
|
||||||
// Ask for confirmation in case the user accidentally clicked Stop / Escape
|
// Ask for confirmation in case the user accidentally clicked Stop / Escape
|
||||||
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bConfirmStop)
|
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bConfirmStop)
|
||||||
{
|
{
|
||||||
|
// Exit fullscreen to ensure it does not cover the stop dialog.
|
||||||
|
DoFullscreen(false);
|
||||||
|
|
||||||
// Pause the state during confirmation and restore it afterwards
|
// Pause the state during confirmation and restore it afterwards
|
||||||
Core::EState state = Core::GetState();
|
Core::EState state = Core::GetState();
|
||||||
|
|
||||||
|
@ -1109,10 +1112,6 @@ void CFrame::DoStop()
|
||||||
{
|
{
|
||||||
Core::SetState(Core::CORE_PAUSE);
|
Core::SetState(Core::CORE_PAUSE);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
DoFullscreen(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
wxMessageDialog m_StopDlg(
|
wxMessageDialog m_StopDlg(
|
||||||
this,
|
this,
|
||||||
|
|
Loading…
Reference in New Issue