summaryrefslogtreecommitdiff
path: root/client/global.gd
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-09-19 16:01:32 +0200
committermetamuffin <metamuffin@disroot.org>2024-09-19 16:01:32 +0200
commitffc09e14446fb938e727d58c127d5c6d17d22375 (patch)
treea404ec31c4ed6eee62468ba17c492fb82e4b7bc2 /client/global.gd
parent2a7652bca3aad446c61bad40f3a1a269dd854bc7 (diff)
downloadhurrycurry-ffc09e14446fb938e727d58c127d5c6d17d22375.tar
hurrycurry-ffc09e14446fb938e727d58c127d5c6d17d22375.tar.bz2
hurrycurry-ffc09e14446fb938e727d58c127d5c6d17d22375.tar.zst
fix constant resetting of hints and setup
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):