From 96d377a396a8b2c9ae6135996fb90d11019bd0c4 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 7 Dec 2023 14:14:06 +1000 Subject: [PATCH] Qt: Fix performance counters showing up without VM --- src/duckstation-qt/qthost.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/duckstation-qt/qthost.cpp b/src/duckstation-qt/qthost.cpp index 9a52689c8..33280e7f4 100644 --- a/src/duckstation-qt/qthost.cpp +++ b/src/duckstation-qt/qthost.cpp @@ -353,7 +353,9 @@ void EmuThread::checkForSettingsChanges(const Settings& old_settings) if (g_main_window) { QMetaObject::invokeMethod(g_main_window, &MainWindow::checkForSettingChanges, Qt::QueuedConnection); - updatePerformanceCounters(); + + if (System::IsValid()) + updatePerformanceCounters(); } if (g_gpu_device)