Merge pull request #6771 from leoetlino/master
Qt: Disable 'uninstall' action if title is not installed
This commit is contained in:
commit
ecb5c97b4d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue