Skip to content

Commit

Permalink
fix(Studio): Not checking if "GameInfoPopoutOpen" setting exists
Browse files Browse the repository at this point in the history
  • Loading branch information
psyGamer committed Oct 7, 2024
1 parent a14112b commit 5c5672b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Studio/CelesteStudio/Migration/MigrateV3_2_0.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static void PreLoad() {

if (document.TryGetValue("ShowGameInfo", out var gameInfoValue) && gameInfoValue is TomlBoolean gameInfo) {
if (gameInfo.Value) {
if (document.GetBoolean("GameInfoPopoutOpen")) {
if (document.TryGetValue("GameInfoPopoutOpen", out var popoutOpenValue) && popoutOpenValue is TomlBoolean popoutOpen && popoutOpen.Value) {
document.Put("GameInfo", "Popout");
} else {
document.Put("GameInfo", "Panel");
Expand Down

0 comments on commit 5c5672b

Please sign in to comment.