Qt: Disable 'uninstall' action if title is not installed

This commit is contained in:
Léo Lam 2018-05-06 21:01:44 +02:00
parent c3d88a622d
commit 7dcab20bfa

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);