Skip to content

Commit

Permalink
don't add filename to window title if there's no file (#1699)
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyer authored Nov 9, 2024
1 parent 7f47e55 commit 025e1bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion application/F3DStarter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,10 @@ void F3DStarter::LoadFileGroup(

if (!this->Internals->AppOptions.NoRender)
{
this->Internals->Engine->getWindow().setWindowName(filenameInfo + " - " + F3D::AppName);
if (!filenameInfo.empty())
{
this->Internals->Engine->getWindow().setWindowName(filenameInfo + " - " + F3D::AppName);
}

if (dynamicOptions.scene.camera.index.has_value())
{
Expand Down

0 comments on commit 025e1bd

Please sign in to comment.