Skip to content

Commit

Permalink
Merge pull request dolphin-emu#8675 from Pokechu22/disc-update
Browse files Browse the repository at this point in the history
Fix Load Wii System Menu not updating after performing a disc update
  • Loading branch information
leoetlino authored Mar 18, 2020
2 parents d1e8e3e + c59120f commit bb430fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Source/Core/DolphinQt/GameList/GameList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/DolphinQt/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit bb430fb

Please sign in to comment.