summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-03-18 11:54:07 +0100
committerGitHub <noreply@github.com>2020-03-18 11:54:07 +0100
commitbb430fb5a521833fa6c7df0170e17b09ccb63837 (patch)
tree7371c097f68a3e385fd1d5e4adc28c0d33936c31 /Source/Core
parentd1e8e3e9036b35e2cac07bd33b14306e0400c07b (diff)
parentc59120f08946ad03b39ee7687c65048a53c78bd5 (diff)
Merge pull request #8675 from Pokechu22/disc-update
Fix Load Wii System Menu not updating after performing a disc update
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt/GameList/GameList.cpp3
-rw-r--r--Source/Core/DolphinQt/MainWindow.cpp4
2 files changed, 5 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/GameList/GameList.cpp b/Source/Core/DolphinQt/GameList/GameList.cpp
index 2f83d5b2b7..edcb38923e 100644
--- a/Source/Core/DolphinQt/GameList/GameList.cpp
+++ b/Source/Core/DolphinQt/GameList/GameList.cpp
@@ -329,6 +329,9 @@ void GameList::ShowContextMenu(const QPoint&)
auto* perform_disc_update = menu->addAction(tr("Perform System Update"), this,
[this, file_path = game->GetFilePath()] {
WiiUpdate::PerformDiscUpdate(file_path, this);
+ // Since the update may have installed a newer
+ // system menu, trigger a refresh.
+ Settings::Instance().NANDRefresh();
});
perform_disc_update->setEnabled(!Core::IsRunning() || !SConfig::GetInstance().bWii);
}
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp
index 3e97e37a5f..6080457c5a 100644
--- a/Source/Core/DolphinQt/MainWindow.cpp
+++ b/Source/Core/DolphinQt/MainWindow.cpp
@@ -1245,8 +1245,8 @@ void MainWindow::SetStateSlot(int slot)
void MainWindow::PerformOnlineUpdate(const std::string& region)
{
WiiUpdate::PerformOnlineUpdate(region, this);
- // Since the update may have installed a newer system menu, refresh the tools menu.
- m_menu_bar->UpdateToolsMenu(false);
+ // Since the update may have installed a newer system menu, trigger a refresh.
+ Settings::Instance().NANDRefresh();
}
void MainWindow::BootWiiSystemMenu()