aboutsummaryrefslogtreecommitdiff
path: root/client/global.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/global.gd')
-rw-r--r--client/global.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/global.gd b/client/global.gd
index 59cc91de..b678f391 100644
--- a/client/global.gd
+++ b/client/global.gd
@@ -169,7 +169,6 @@ func set_profile(key: String, value):
return
if profile[key] != value:
profile[key] = value
- save_profile()
func set_hint(key: String, value: bool):
if !profile["hints"].has(key):
@@ -177,8 +176,9 @@ func set_hint(key: String, value: bool):
if profile["hints"][key] != value:
if value:
set_setting("tutorial_started", true)
+ save_settings()
profile["hints"][key] = value
- save_profile()
+ save_profile() # TODO avoid this call when bulk-unsetting hints
func get_hint(key: String):
if profile["hints"].has(key):