From 919e2f8f5f769b31b0708faf02e6052793bc2574 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 1 Nov 2023 17:58:25 +0100 Subject: [PATCH] Cleanup --- sbapp/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbapp/main.py b/sbapp/main.py index 85ef19d..b02149b 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -729,7 +729,7 @@ class SidebandApp(MDApp): self.conversations_view.update() imr = self.sideband.getstate("lxm_uri_ingest.result", allow_cache=True) - if imr != None and imr != "None": + if imr and imr != "None" and imr != "False": info_text = str(imr) self.sideband.setstate("lxm_uri_ingest.result", False) ok_button = MDRectangleFlatButton(text="OK",font_size=dp(18)) @@ -746,7 +746,7 @@ class SidebandApp(MDApp): dialog.open() hwe = self.sideband.getstate("hardware_operation.error", allow_cache=True) - if hwe != None and hwe != "None": + if hwe and hwe != "None" and hwe != "False": info_text = str(hwe) self.sideband.setstate("hardware_operation.error", False) ok_button = MDRectangleFlatButton(text="OK",font_size=dp(18)) @@ -3474,7 +3474,7 @@ class SidebandApp(MDApp): else: self.sideband.create_conversation(context_dest) self.sideband.setstate("app.flags.new_conversations", True) - + self.open_conversation(context_dest) def telemetry_send_update(self, sender=None):