Skip to content

Commit

Permalink
fix: if title is empty, set to Untitled, closes #1225 (#1257)
Browse files Browse the repository at this point in the history
  • Loading branch information
H-jj-R committed Mar 28, 2023
1 parent 6702081 commit 875f5ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fxgl/src/main/kotlin/com/almasb/fxgl/app/Settings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@ class GameSettings(
}

fun toReadOnly(userAppClass: Class<*> = GameApplication::class.java): ReadOnlyGameSettings {
if (title == "")
title = "Untitled"

return ReadOnlyGameSettings(
runtimeInfo,
title,
Expand Down

0 comments on commit 875f5ff

Please sign in to comment.