mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-11 00:29:11 +01:00
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();
|
||||
BootManager::Stop();
|
||||
UpdateGUI();
|
||||
}
|
||||
}
|
||||
|
||||
@ -1638,6 +1639,7 @@ void CFrame::UpdateGUI()
|
||||
bool Initialized = Core::IsRunning();
|
||||
bool Running = Core::GetState() == Core::CORE_RUN;
|
||||
bool Paused = Core::GetState() == Core::CORE_PAUSE;
|
||||
bool Stopping = Core::GetState() == Core::CORE_STOPPING;
|
||||
bool RunningWii = 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
|
||||
if (m_ToolBar)
|
||||
m_ToolBar->EnableTool(IDM_PLAY, true);
|
||||
GetMenuBar()->FindItem(IDM_PLAY)->Enable(true);
|
||||
m_ToolBar->EnableTool(IDM_PLAY, !Stopping);
|
||||
GetMenuBar()->FindItem(IDM_PLAY)->Enable(!Stopping);
|
||||
|
||||
// Reset game loading flag
|
||||
m_bGameLoading = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user