diff options
Diffstat (limited to 'Source/Core/DolphinQt2/MainWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/MainWindow.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt2/MainWindow.cpp b/Source/Core/DolphinQt2/MainWindow.cpp index c678d61bdf..7b6919d56c 100644 --- a/Source/Core/DolphinQt2/MainWindow.cpp +++ b/Source/Core/DolphinQt2/MainWindow.cpp @@ -52,6 +52,7 @@ MainWindow::MainWindow() : QMainWindow(nullptr) ConnectMenuBar(); InitControllers(); + InitCoreCallbacks(); } MainWindow::~MainWindow() @@ -88,6 +89,11 @@ void MainWindow::ShutdownControllers() m_hotkey_scheduler->deleteLater(); } +void MainWindow::InitCoreCallbacks() +{ + Core::SetOnStoppedCallback([this] { emit EmulationStopped(); }); +} + static void InstallHotkeyFilter(QWidget* dialog) { auto* filter = new WindowActivationEventFilter(); @@ -291,7 +297,6 @@ void MainWindow::ForceStop() { BootManager::Stop(); HideRenderWidget(); - emit EmulationStopped(); } void MainWindow::Reset() |
