mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-10-12 02:08:45 +00:00
Qt: Check if main window exists before updating performance metrics.
This commit is contained in:
@@ -965,6 +965,9 @@ void Host::OnGameChanged(const std::string& title, const std::string& elf_overri
|
||||
|
||||
void EmuThread::updatePerformanceMetrics(bool force)
|
||||
{
|
||||
if (!g_main_window)
|
||||
return;
|
||||
|
||||
if (VMManager::HasValidVM())
|
||||
{
|
||||
QString gs_stat;
|
||||
|
||||
Reference in New Issue
Block a user