diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2018-06-07 16:49:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-07 16:49:09 +0200 |
| commit | ca32b4127ed55dd5527bf8ee60a76f69c7796853 (patch) | |
| tree | 994057572db07ba321d64d8ffa697ba2481450ef /Source/Core | |
| parent | 18d5ba30d64840e261945c211d19934f1daedfcf (diff) | |
| parent | 23394164de3f590e5950bfb287ba92fca7659a95 (diff) | |
Merge pull request #7089 from spycrab/qt_refresh_hotkey
Qt: Implement "Refresh Game List" hotkey
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt2/HotkeyScheduler.cpp | 4 | ||||
| -rw-r--r-- | Source/Core/DolphinQt2/HotkeyScheduler.h | 1 | ||||
| -rw-r--r-- | Source/Core/DolphinQt2/MainWindow.cpp | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt2/HotkeyScheduler.cpp b/Source/Core/DolphinQt2/HotkeyScheduler.cpp index 91812fd6ba..77b3cfa71b 100644 --- a/Source/Core/DolphinQt2/HotkeyScheduler.cpp +++ b/Source/Core/DolphinQt2/HotkeyScheduler.cpp @@ -165,6 +165,10 @@ void HotkeyScheduler::Run() Common::SleepCurrentThread(100); } + // Refresh Game List + if (IsHotkey(HK_REFRESH_LIST)) + emit RefreshGameListHotkey(); + // Pause and Unpause if (IsHotkey(HK_PLAY_PAUSE)) emit TogglePauseHotkey(); diff --git a/Source/Core/DolphinQt2/HotkeyScheduler.h b/Source/Core/DolphinQt2/HotkeyScheduler.h index 92632c4658..f4ea514534 100644 --- a/Source/Core/DolphinQt2/HotkeyScheduler.h +++ b/Source/Core/DolphinQt2/HotkeyScheduler.h @@ -30,6 +30,7 @@ signals: void ResetHotkey(); void TogglePauseHotkey(); void ScreenShotHotkey(); + void RefreshGameListHotkey(); void SetStateSlotHotkey(int slot); void StateLoadSlotHotkey(); void StateSaveSlotHotkey(); diff --git a/Source/Core/DolphinQt2/MainWindow.cpp b/Source/Core/DolphinQt2/MainWindow.cpp index 39a50e72f0..befa0f6ca4 100644 --- a/Source/Core/DolphinQt2/MainWindow.cpp +++ b/Source/Core/DolphinQt2/MainWindow.cpp @@ -391,6 +391,8 @@ void MainWindow::ConnectHotkeys() connect(m_hotkey_scheduler, &HotkeyScheduler::EjectDisc, this, &MainWindow::EjectDisc); connect(m_hotkey_scheduler, &HotkeyScheduler::ExitHotkey, this, &MainWindow::close); connect(m_hotkey_scheduler, &HotkeyScheduler::TogglePauseHotkey, this, &MainWindow::TogglePause); + connect(m_hotkey_scheduler, &HotkeyScheduler::RefreshGameListHotkey, this, + &MainWindow::RefreshGameList); connect(m_hotkey_scheduler, &HotkeyScheduler::StopHotkey, this, &MainWindow::RequestStop); connect(m_hotkey_scheduler, &HotkeyScheduler::ResetHotkey, this, &MainWindow::Reset); connect(m_hotkey_scheduler, &HotkeyScheduler::ScreenShotHotkey, this, &MainWindow::ScreenShot); |
