FrameTools: Update GUI and disable Play button when in stopping state.
This commit is contained in:
parent
49eade69a3
commit
ad1b61af2e
|
@ -1127,6 +1127,7 @@ void CFrame::DoStop()
|
||||||
|
|
||||||
wxBeginBusyCursor();
|
wxBeginBusyCursor();
|
||||||
BootManager::Stop();
|
BootManager::Stop();
|
||||||
|
UpdateGUI();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1638,6 +1639,7 @@ void CFrame::UpdateGUI()
|
||||||
bool Initialized = Core::IsRunning();
|
bool Initialized = Core::IsRunning();
|
||||||
bool Running = Core::GetState() == Core::CORE_RUN;
|
bool Running = Core::GetState() == Core::CORE_RUN;
|
||||||
bool Paused = Core::GetState() == Core::CORE_PAUSE;
|
bool Paused = Core::GetState() == Core::CORE_PAUSE;
|
||||||
|
bool Stopping = Core::GetState() == Core::CORE_STOPPING;
|
||||||
bool RunningWii = Initialized && SConfig::GetInstance().m_LocalCoreStartupParameter.bWii;
|
bool RunningWii = Initialized && SConfig::GetInstance().m_LocalCoreStartupParameter.bWii;
|
||||||
bool RunningGamecube = Initialized && !SConfig::GetInstance().m_LocalCoreStartupParameter.bWii;
|
bool RunningGamecube = Initialized && !SConfig::GetInstance().m_LocalCoreStartupParameter.bWii;
|
||||||
|
|
||||||
|
@ -1784,8 +1786,8 @@ void CFrame::UpdateGUI()
|
||||||
{
|
{
|
||||||
// Game has been loaded, enable the pause button
|
// Game has been loaded, enable the pause button
|
||||||
if (m_ToolBar)
|
if (m_ToolBar)
|
||||||
m_ToolBar->EnableTool(IDM_PLAY, true);
|
m_ToolBar->EnableTool(IDM_PLAY, !Stopping);
|
||||||
GetMenuBar()->FindItem(IDM_PLAY)->Enable(true);
|
GetMenuBar()->FindItem(IDM_PLAY)->Enable(!Stopping);
|
||||||
|
|
||||||
// Reset game loading flag
|
// Reset game loading flag
|
||||||
m_bGameLoading = false;
|
m_bGameLoading = false;
|
||||||
|
|
Loading…
Reference in New Issue