mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
Qt: Disable 'uninstall' action if title is not installed
This commit is contained in:
parent
c3d88a622d
commit
7dcab20bfa
@ -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…
x
Reference in New Issue
Block a user