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