Only set window title if standalone

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2023-01-03 23:53:27 +00:00
parent b94762a695
commit 1497e54974
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0

View file

@ -623,6 +623,7 @@ void Window::step() {
bndSetFont(uiFont->handle);
// Set window title
if (isStandalone()) {
std::string windowTitle = "Cardinal";
if (APP->patch->path != "") {
windowTitle += " - ";
@ -634,6 +635,7 @@ void Window::step() {
internal->tlw->getWindow().setTitle(windowTitle.c_str());
internal->lastWindowTitle = windowTitle;
}
}
// Get desired pixel ratio
float newPixelRatio = internal->tlw->getScaleFactor();