1
0
forked from mirrors/0ad

Render GameSettingsWarning on construction

`GameSettingsWarning` where only rendered when the settings change. When
a saved game is loaded it's possible this setting is enablet without the
setting being changed.

Defect introduced in b90280855f.
This commit is contained in:
phosit
2024-12-27 12:57:11 +01:00
committed by phosit
parent 4c48661b4f
commit 8636e4d0fd
@@ -9,6 +9,7 @@ class GameSettingWarning
g_GameSettings.cheats.watch(() => this.onSettingsChange(), ["enabled"]);
g_GameSettings.rating.watch(() => this.onSettingsChange(), ["enabled"]);
this.onSettingsChange();
}
onSettingsChange()