diff --git a/UI/Controls/user_entry.gd b/UI/Controls/user_entry.gd index 02e7ca76..2c8cf7e6 100644 --- a/UI/Controls/user_entry.gd +++ b/UI/Controls/user_entry.gd @@ -5,6 +5,7 @@ var chatter: Chatter var tw_hidden: Tween var is_expanded: bool = false + var is_profile_picture_loaded: bool = false signal user_selected(chatter: Chatter) diff --git a/UI/Controls/user_list.gd b/UI/Controls/user_list.gd index ead631b9..79b77f00 100644 --- a/UI/Controls/user_list.gd +++ b/UI/Controls/user_list.gd @@ -19,6 +19,13 @@ var _filter_name: String = "" func _ready() -> void: %Filter.text_changed.connect(_update_filter_name) %FilterLive.pressed.connect(func(): filtering_live = !filtering_live) + %Refresh.pressed.connect(func(): + clear_list() + populate_list() + Globals.refresh_live_streamer() + filter_list() + ) + Globals.live_streamers_updated.connect(filter_list) func _update_filter_name(txt: String) -> void: _filter_name = txt.to_lower() 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") diff --git a/submodules/gdata_orm b/submodules/gdata_orm index c4a6ef75..6b84770f 160000 --- a/submodules/gdata_orm +++ b/submodules/gdata_orm @@ -1 +1 @@ -Subproject commit c4a6ef75b9313e44caeed547715b8aa5097cf087 +Subproject commit 6b84770fe6d3a5090e691c5ef3d9c17c50945ce0