WX: Clear m_is_game_loading at the proper moment
This should happen after the core has stopped (OnStopped), not when the user wants to stop (DoStop).
This commit is contained in:
parent
52f00603e2
commit
546181c457
|
@ -818,7 +818,6 @@ void CFrame::DoStop()
|
||||||
// don't let this function run again until it finishes, or is aborted.
|
// don't let this function run again until it finishes, or is aborted.
|
||||||
m_confirm_stop = true;
|
m_confirm_stop = true;
|
||||||
|
|
||||||
m_is_game_loading = false;
|
|
||||||
if (Core::GetState() != Core::State::Uninitialized || m_render_parent != nullptr)
|
if (Core::GetState() != Core::State::Uninitialized || m_render_parent != nullptr)
|
||||||
{
|
{
|
||||||
#if defined __WXGTK__
|
#if defined __WXGTK__
|
||||||
|
@ -919,6 +918,7 @@ bool CFrame::TriggerSTMPowerEvent()
|
||||||
void CFrame::OnStopped()
|
void CFrame::OnStopped()
|
||||||
{
|
{
|
||||||
m_confirm_stop = false;
|
m_confirm_stop = false;
|
||||||
|
m_is_game_loading = false;
|
||||||
m_tried_graceful_shutdown = false;
|
m_tried_graceful_shutdown = false;
|
||||||
|
|
||||||
UninhibitScreensaver();
|
UninhibitScreensaver();
|
||||||
|
|
Loading…
Reference in New Issue