Qt: Fix Wii Disc options being disabled while core is running

This commit is contained in:
spycrab 2017-09-07 01:27:48 +02:00
parent 14bd0fbf4b
commit 0b2b72b366
1 changed files with 2 additions and 2 deletions

View File

@ -185,10 +185,10 @@ void GameList::ShowContextMenu(const QPoint&)
if (platform == DiscIO::Platform::WII_DISC) if (platform == DiscIO::Platform::WII_DISC)
{ {
AddAction(menu, tr("Perform System Update"), this, [this] { auto* perform_disc_update = AddAction(menu, tr("Perform System Update"), this, [this] {
WiiUpdate::PerformDiscUpdate(GetSelectedGame()->GetFilePath().toStdString(), this); WiiUpdate::PerformDiscUpdate(GetSelectedGame()->GetFilePath().toStdString(), this);
}); });
menu->setEnabled(!Core::IsRunning() || !SConfig::GetInstance().bWii); perform_disc_update->setEnabled(!Core::IsRunning() || !SConfig::GetInstance().bWii);
} }
if (platform == DiscIO::Platform::WII_WAD) if (platform == DiscIO::Platform::WII_WAD)