From 88de87681022166bdd5378e6cb047aefcf47f2a5 Mon Sep 17 00:00:00 2001 From: Harkaran Mann Date: Thu, 10 Aug 2023 00:26:28 -0700 Subject: [PATCH] DolphinQt: Turn of wii save options during emulation --- Source/Core/DolphinQt/GameList/GameList.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt/GameList/GameList.cpp b/Source/Core/DolphinQt/GameList/GameList.cpp index 9f2731af65..242466af35 100644 --- a/Source/Core/DolphinQt/GameList/GameList.cpp +++ b/Source/Core/DolphinQt/GameList/GameList.cpp @@ -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(); }