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:
+1
@@ -9,6 +9,7 @@ class GameSettingWarning
|
||||
|
||||
g_GameSettings.cheats.watch(() => this.onSettingsChange(), ["enabled"]);
|
||||
g_GameSettings.rating.watch(() => this.onSettingsChange(), ["enabled"]);
|
||||
this.onSettingsChange();
|
||||
}
|
||||
|
||||
onSettingsChange()
|
||||
|
||||
Reference in New Issue
Block a user