Fix the window title when the option "show_fps_in_title" is not checked

This commit is contained in:
scribam 2017-08-11 23:50:08 +02:00 committed by Ivan
parent 0c1d4e43e4
commit 956117a74f

View File

@ -32,6 +32,7 @@ gs_frame::gs_frame(const QString& title, int w, int h, QIcon appIcon, bool disab
resize(w, h);
setTitle(m_windowTitle);
setVisibility(Hidden);
create();
@ -188,13 +189,6 @@ void gs_frame::flip(draw_context_t, bool /*skip_frame*/)
fps_t.Start();
}
}
else
{
if (this->title() != m_windowTitle)
{
Emu.CallAfter([this, title = std::move(m_windowTitle)]() {setTitle(m_windowTitle); });
}
}
}
void gs_frame::mouseDoubleClickEvent(QMouseEvent* ev)