Updated Globals
Added refresh_live_streamer() function for refreshing of the live streamers manually, instead of automatically through the timer.
This commit is contained in:
parent
057edb22d5
commit
43f82fd03c
1 changed files with 5 additions and 0 deletions
|
|
@ -74,6 +74,11 @@ func _run_live_streamer_update() -> void:
|
||||||
live_streamers = await twitcher.get_live_streamers_data()
|
live_streamers = await twitcher.get_live_streamers_data()
|
||||||
live_streamers_updated.emit()
|
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:
|
func save_settings() -> void:
|
||||||
ResourceSaver.save(settings, "user://settings.tres")
|
ResourceSaver.save(settings, "user://settings.tres")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue