Fix the window title when the option "show_fps_in_title" is not checked
This commit is contained in:
@@ -32,6 +32,7 @@ gs_frame::gs_frame(const QString& title, int w, int h, QIcon appIcon, bool disab
|
|||||||
|
|
||||||
resize(w, h);
|
resize(w, h);
|
||||||
|
|
||||||
|
setTitle(m_windowTitle);
|
||||||
setVisibility(Hidden);
|
setVisibility(Hidden);
|
||||||
create();
|
create();
|
||||||
|
|
||||||
@@ -188,13 +189,6 @@ void gs_frame::flip(draw_context_t, bool /*skip_frame*/)
|
|||||||
fps_t.Start();
|
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)
|
void gs_frame::mouseDoubleClickEvent(QMouseEvent* ev)
|
||||||
|
|||||||
Reference in New Issue
Block a user