mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-03 21:41:19 +12:00
GraphicPacksWindow: Disable update button when a game is running (#1137)
This commit is contained in:
parent
111e383d1b
commit
4f3d4624f5
5 changed files with 30 additions and 11 deletions
|
@ -625,6 +625,7 @@ bool MainWindow::FileLoad(const fs::path launchPath, wxLaunchGameEvent::INITIATE
|
|||
CreateCanvas();
|
||||
CafeSystem::LaunchForegroundTitle();
|
||||
RecreateMenu();
|
||||
UpdateChildWindowTitleRunningState();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -683,6 +684,7 @@ void MainWindow::OnFileMenu(wxCommandEvent& event)
|
|||
RecreateMenu();
|
||||
CreateGameListAndStatusBar();
|
||||
DoLayout();
|
||||
UpdateChildWindowTitleRunningState();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2320,6 +2322,14 @@ void MainWindow::RecreateMenu()
|
|||
SetMenuVisible(false);
|
||||
}
|
||||
|
||||
void MainWindow::UpdateChildWindowTitleRunningState()
|
||||
{
|
||||
const bool running = CafeSystem::IsTitleRunning();
|
||||
|
||||
if(m_graphic_pack_window)
|
||||
m_graphic_pack_window->UpdateTitleRunning(running);
|
||||
}
|
||||
|
||||
void MainWindow::RestoreSettingsAfterGameExited()
|
||||
{
|
||||
RecreateMenu();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue