Merge pull request #12093 from Hark64/exportWiiSaveErrorFix

Disable Wii Save Options When Emulation Is Running
This commit is contained in:
Admiral H. Curtiss 2023-08-12 20:34:47 +02:00 committed by GitHub
commit bc47a28653
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -467,8 +467,14 @@ void GameList::ShowContextMenu(const QPoint&)
if (!is_mod_descriptor &&
(platform == DiscIO::Platform::WiiWAD || platform == DiscIO::Platform::WiiDisc))
{
menu->addAction(tr("Open Wii &Save Folder"), this, &GameList::OpenWiiSaveFolder);
menu->addAction(tr("Export Wii Save"), this, &GameList::ExportWiiSave);
QAction* open_wii_save_folder =
menu->addAction(tr("Open Wii &Save Folder"), this, &GameList::OpenWiiSaveFolder);
QAction* export_wii_save =
menu->addAction(tr("Export Wii Save"), this, &GameList::ExportWiiSave);
open_wii_save_folder->setEnabled(!Core::IsRunning());
export_wii_save->setEnabled(!Core::IsRunning());
menu->addSeparator();
}