diff options
| author | Leo Lam <leolino.lam@gmail.com> | 2017-06-28 15:35:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-28 15:35:05 +0200 |
| commit | e14a82a87ee1b3d32a13736a0224b8247f6195f4 (patch) | |
| tree | a4c4535d064beacbe811320bdbcb0ba52dc61410 /Source/Core/DolphinQt2/MainWindow.cpp | |
| parent | 6a0d064f6e17f9ce1a95deeee0fd278ce16a8cf1 (diff) | |
| parent | 4dcfa5371a38e19db9195c360b3fe38cd4a6bfea (diff) | |
Merge pull request #5610 from leoetlino/online-wii-updates
Add ability to perform Wii online updates (without the system menu)
Diffstat (limited to 'Source/Core/DolphinQt2/MainWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/MainWindow.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt2/MainWindow.cpp b/Source/Core/DolphinQt2/MainWindow.cpp index b57ac4f134..de38910faa 100644 --- a/Source/Core/DolphinQt2/MainWindow.cpp +++ b/Source/Core/DolphinQt2/MainWindow.cpp @@ -30,7 +30,6 @@ #include "DolphinQt2/AboutDialog.h" #include "DolphinQt2/Config/ControllersWindow.h" - #include "DolphinQt2/Config/Mapping/MappingWindow.h" #include "DolphinQt2/Config/SettingsWindow.h" #include "DolphinQt2/Host.h" @@ -39,6 +38,7 @@ #include "DolphinQt2/QtUtils/WindowActivationEventFilter.h" #include "DolphinQt2/Resources.h" #include "DolphinQt2/Settings.h" +#include "DolphinQt2/WiiUpdate.h" #include "InputCommon/ControllerInterface/ControllerInterface.h" @@ -165,6 +165,9 @@ void MainWindow::ConnectMenuBar() // Options connect(m_menu_bar, &MenuBar::ConfigureHotkeys, this, &MainWindow::ShowHotkeyDialog); + // Tools + connect(m_menu_bar, &MenuBar::PerformOnlineUpdate, this, &MainWindow::PerformOnlineUpdate); + // View connect(m_menu_bar, &MenuBar::ShowTable, m_game_list, &GameList::SetTableView); connect(m_menu_bar, &MenuBar::ShowList, m_game_list, &GameList::SetListView); @@ -530,6 +533,13 @@ void MainWindow::SetStateSlot(int slot) m_state_slot = 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); +} + bool MainWindow::eventFilter(QObject* object, QEvent* event) { if (event->type() == QEvent::Close && !Stop()) |
