Fix Load Wii System Menu not updating after performing a disc update

For a fresh install, the button was completely disabled even after the disc update; otherwise, the text on it was just out of date.
This commit is contained in:
Pokechu22 2020-03-17 19:52:29 -07:00
parent 0461170363
commit c59120f089
2 changed files with 5 additions and 2 deletions

View File

@ -329,6 +329,9 @@ void GameList::ShowContextMenu(const QPoint&)
auto* perform_disc_update = menu->addAction(tr("Perform System Update"), this, auto* perform_disc_update = menu->addAction(tr("Perform System Update"), this,
[this, file_path = game->GetFilePath()] { [this, file_path = game->GetFilePath()] {
WiiUpdate::PerformDiscUpdate(file_path, this); 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); perform_disc_update->setEnabled(!Core::IsRunning() || !SConfig::GetInstance().bWii);
} }

View File

@ -1245,8 +1245,8 @@ void MainWindow::SetStateSlot(int slot)
void MainWindow::PerformOnlineUpdate(const std::string& region) void MainWindow::PerformOnlineUpdate(const std::string& region)
{ {
WiiUpdate::PerformOnlineUpdate(region, this); WiiUpdate::PerformOnlineUpdate(region, this);
// Since the update may have installed a newer system menu, refresh the tools menu. // Since the update may have installed a newer system menu, trigger a refresh.
m_menu_bar->UpdateToolsMenu(false); Settings::Instance().NANDRefresh();
} }
void MainWindow::BootWiiSystemMenu() void MainWindow::BootWiiSystemMenu()