From 43f82fd03c8b1303e9f72b14ce06ac51cd23584f Mon Sep 17 00:00:00 2001 From: Mario Steele Date: Sun, 8 Mar 2026 19:28:41 -0500 Subject: [PATCH] Updated Globals Added refresh_live_streamer() function for refreshing of the live streamers manually, instead of automatically through the timer. --- lib/globals.gd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/globals.gd b/lib/globals.gd index f9c17470..d498b1dd 100644 --- a/lib/globals.gd +++ b/lib/globals.gd @@ -74,6 +74,11 @@ func _run_live_streamer_update() -> void: live_streamers = await twitcher.get_live_streamers_data() live_streamers_updated.emit() +func refresh_live_streamer() -> void: + if _tmr_live_stream: _tmr_live_stream.stop() + _run_live_streamer_update() + if _tmr_live_stream: _tmr_live_stream.start(240) + func save_settings() -> void: ResourceSaver.save(settings, "user://settings.tres")