Merge pull request #6771 from leoetlino/master

Qt: Disable 'uninstall' action if title is not installed
This commit is contained in:
JosJuice 2018-05-06 21:33:36 +02:00 committed by GitHub
commit ecb5c97b4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -210,6 +210,8 @@ void GameList::ShowContextMenu(const QPoint&)
a->setEnabled(!Core::IsRunning());
menu->addAction(a);
}
if (!Core::IsRunning())
wad_uninstall_action->setEnabled(WiiUtils::IsTitleInstalled(game->GetTitleID()));
connect(&Settings::Instance(), &Settings::EmulationStateChanged, menu, [=](Core::State state) {
wad_install_action->setEnabled(state == Core::State::Uninitialized);