diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-08-12 20:34:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-12 20:34:47 +0200 |
| commit | bc47a286535527f46569b8a0ec0a0b402c83ec3c (patch) | |
| tree | 7df81edafaec5787a0bf5cad70ceda4086fe0044 /Source | |
| parent | dfbc0e33d70a94124cd4a9176d9f544365a66bd2 (diff) | |
| parent | 783ff26eddb9bb035526887605d6f6ce036d1fba (diff) | |
Merge pull request #12093 from Hark64/exportWiiSaveErrorFix
Disable Wii Save Options When Emulation Is Running
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/DolphinQt/GameList/GameList.cpp | 10 |
1 files 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(); } |
