mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Qt: Disable 'uninstall' action if title is not installed
This commit is contained in:
@ -210,6 +210,8 @@ void GameList::ShowContextMenu(const QPoint&)
|
|||||||
a->setEnabled(!Core::IsRunning());
|
a->setEnabled(!Core::IsRunning());
|
||||||
menu->addAction(a);
|
menu->addAction(a);
|
||||||
}
|
}
|
||||||
|
if (!Core::IsRunning())
|
||||||
|
wad_uninstall_action->setEnabled(WiiUtils::IsTitleInstalled(game->GetTitleID()));
|
||||||
|
|
||||||
connect(&Settings::Instance(), &Settings::EmulationStateChanged, menu, [=](Core::State state) {
|
connect(&Settings::Instance(), &Settings::EmulationStateChanged, menu, [=](Core::State state) {
|
||||||
wad_install_action->setEnabled(state == Core::State::Uninitialized);
|
wad_install_action->setEnabled(state == Core::State::Uninitialized);
|
||||||
|
Reference in New Issue
Block a user