Only set window title if standalone
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
b94762a695
commit
1497e54974
1 changed files with 12 additions and 10 deletions
|
@ -623,16 +623,18 @@ void Window::step() {
|
|||
bndSetFont(uiFont->handle);
|
||||
|
||||
// Set window title
|
||||
std::string windowTitle = "Cardinal";
|
||||
if (APP->patch->path != "") {
|
||||
windowTitle += " - ";
|
||||
if (!APP->history->isSaved())
|
||||
windowTitle += "*";
|
||||
windowTitle += system::getFilename(APP->patch->path);
|
||||
}
|
||||
if (windowTitle != internal->lastWindowTitle) {
|
||||
internal->tlw->getWindow().setTitle(windowTitle.c_str());
|
||||
internal->lastWindowTitle = windowTitle;
|
||||
if (isStandalone()) {
|
||||
std::string windowTitle = "Cardinal";
|
||||
if (APP->patch->path != "") {
|
||||
windowTitle += " - ";
|
||||
if (!APP->history->isSaved())
|
||||
windowTitle += "*";
|
||||
windowTitle += system::getFilename(APP->patch->path);
|
||||
}
|
||||
if (windowTitle != internal->lastWindowTitle) {
|
||||
internal->tlw->getWindow().setTitle(windowTitle.c_str());
|
||||
internal->lastWindowTitle = windowTitle;
|
||||
}
|
||||
}
|
||||
|
||||
// Get desired pixel ratio
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue