mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Revert "Audit uses of IsRunning and GetState"
This reverts commit 72cf2bdb87
.
SYSCONF settings are getting cleared when they shouldn't be. Let's
revert the change until I get proper time to figure out why it's broken.
This commit is contained in:
@ -436,7 +436,7 @@ void GameList::ShowContextMenu(const QPoint&)
|
||||
// system menu, trigger a refresh.
|
||||
Settings::Instance().NANDRefresh();
|
||||
});
|
||||
perform_disc_update->setEnabled(Core::IsUninitialized(system) || !system.IsWii());
|
||||
perform_disc_update->setEnabled(!Core::IsRunning(system) || !system.IsWii());
|
||||
}
|
||||
|
||||
if (!is_mod_descriptor && platform == DiscIO::Platform::WiiWAD)
|
||||
@ -449,10 +449,10 @@ void GameList::ShowContextMenu(const QPoint&)
|
||||
|
||||
for (QAction* a : {wad_install_action, wad_uninstall_action})
|
||||
{
|
||||
a->setEnabled(Core::IsUninitialized(system));
|
||||
a->setEnabled(!Core::IsRunning(system));
|
||||
menu->addAction(a);
|
||||
}
|
||||
if (Core::IsUninitialized(system))
|
||||
if (!Core::IsRunning(system))
|
||||
wad_uninstall_action->setEnabled(WiiUtils::IsTitleInstalled(game->GetTitleID()));
|
||||
|
||||
connect(&Settings::Instance(), &Settings::EmulationStateChanged, menu,
|
||||
@ -473,8 +473,8 @@ void GameList::ShowContextMenu(const QPoint&)
|
||||
QAction* export_wii_save =
|
||||
menu->addAction(tr("Export Wii Save"), this, &GameList::ExportWiiSave);
|
||||
|
||||
open_wii_save_folder->setEnabled(Core::IsUninitialized(system));
|
||||
export_wii_save->setEnabled(Core::IsUninitialized(system));
|
||||
open_wii_save_folder->setEnabled(!Core::IsRunning(system));
|
||||
export_wii_save->setEnabled(!Core::IsRunning(system));
|
||||
|
||||
menu->addSeparator();
|
||||
}
|
||||
@ -531,7 +531,7 @@ void GameList::ShowContextMenu(const QPoint&)
|
||||
connect(&Settings::Instance(), &Settings::EmulationStateChanged, menu, [=](Core::State state) {
|
||||
netplay_host->setEnabled(state == Core::State::Uninitialized);
|
||||
});
|
||||
netplay_host->setEnabled(Core::IsUninitialized(system));
|
||||
netplay_host->setEnabled(!Core::IsRunning(system));
|
||||
|
||||
menu->addAction(netplay_host);
|
||||
}
|
||||
|
Reference in New Issue
Block a user