From 783ff26eddb9bb035526887605d6f6ce036d1fba 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 c918c4555d..0f2c3beb66 100644 --- a/Source/Core/DolphinQt/GameList/GameList.cpp +++ b/Source/Core/DolphinQt/GameList/GameList.cpp @@ -466,8 +466,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(); }