Skip to content
Permalink
Browse files
Merge pull request #6771 from leoetlino/master
Qt: Disable 'uninstall' action if title is not installed
  • Loading branch information
JosJuice committed May 6, 2018
2 parents c3d88a6 + 7dcab20 commit ecb5c97
Showing 1 changed file with 2 additions and 0 deletions.
@@ -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);

0 comments on commit ecb5c97

Please sign in to comment.