Skip to content

Commit

Permalink
fix(Studio): Apply default settings before loading
Browse files Browse the repository at this point in the history
  • Loading branch information
psyGamer committed Sep 3, 2024
1 parent accdcac commit 300e226
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Studio/CelesteStudio/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,11 @@ public static void Load() {
return hotkey.Value.HotkeyFromString("+");
});

// Apply default settings, so that nothing is in an invalid state before loading
OnChanged();
OnThemeChanged();
OnFontChanged();

TryAgain:
if (File.Exists(SettingsPath)) {
try {
Expand Down Expand Up @@ -334,9 +339,6 @@ The settings file should've opened itself.
} else {
allowSaving = true;

OnChanged();
OnThemeChanged();
OnFontChanged();
Save();
}

Expand Down

0 comments on commit 300e226

Please sign in to comment.