mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 21:06:58 -05:00
yuzu: Disable game list while game is running
This commit is contained in:
parent
53fd08b360
commit
e5be1835ab
1 changed files with 4 additions and 0 deletions
|
@ -1798,6 +1798,7 @@ void GMainWindow::BootGame(const QString& filename, u64 program_id, std::size_t
|
|||
}
|
||||
|
||||
system->SetShuttingDown(false);
|
||||
game_list->setDisabled(true);
|
||||
|
||||
// Create and start the emulation thread
|
||||
emu_thread = std::make_unique<EmuThread>(*system);
|
||||
|
@ -1993,6 +1994,9 @@ void GMainWindow::OnEmulationStopped() {
|
|||
// When closing the game, destroy the GLWindow to clear the context after the game is closed
|
||||
render_window->ReleaseRenderTarget();
|
||||
|
||||
// Enable game list
|
||||
game_list->setEnabled(true);
|
||||
|
||||
Settings::RestoreGlobalState(system->IsPoweredOn());
|
||||
system->HIDCore().ReloadInputDevices();
|
||||
UpdateStatusButtons();
|
||||
|
|
Loading…
Reference in a new issue