From 64522ba1c3709f57a2a71684069a2b10d23823b1 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 14 Sep 2022 22:09:58 +0200 Subject: [PATCH] Adjusted timing --- sbapp/main.py | 2 +- sbapp/sideband/core.py | 2 +- sbapp/ui/announces.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sbapp/main.py b/sbapp/main.py index 82c7d11..9348760 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -138,7 +138,7 @@ class SidebandApp(MDApp): self.root.ids.screen_manager.app = self self.root.ids.app_version_info.text = "Sideband v"+__version__+" "+__variant__ - Clock.schedule_once(self.start_core, 3) + Clock.schedule_once(self.start_core, 3.5) # Part of the focus hack fix def android_focus_fix(self, sender, val): diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py index ffafc86..2406266 100644 --- a/sbapp/sideband/core.py +++ b/sbapp/sideband/core.py @@ -120,7 +120,7 @@ class SidebandCore(): RNS.Transport.register_announce_handler(self) RNS.Transport.register_announce_handler(self.propagation_detector) - + def __init_config(self): RNS.log("Creating new Sideband configuration...") diff --git a/sbapp/ui/announces.py b/sbapp/ui/announces.py index 6a3de23..4e59cb0 100644 --- a/sbapp/ui/announces.py +++ b/sbapp/ui/announces.py @@ -39,6 +39,7 @@ class Announces(): def update(self): self.clear_list() self.announces = self.app.sideband.list_announces() + self.update_widget() self.app.flag_new_announces = False @@ -97,7 +98,6 @@ class Announces(): disp_name = "Unknown Announce" iconl = IconLeftWidget(icon="progress-question") - item = OneLineAvatarIconListItem(text=time_string+": "+disp_name, on_release=gen_info(time_string, context_dest, a_data, dest_type)) item.add_widget(iconl) item.sb_uid = context_dest