Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
markqvist committed Nov 1, 2023
1 parent 1fb6c38 commit 919e2f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sbapp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ def dl_ok(s):
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))
Expand All @@ -746,7 +746,7 @@ def dl_ok(s):
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))
Expand Down Expand Up @@ -3474,7 +3474,7 @@ def converse_from_telemetry(self, sender=None):
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):
Expand Down

0 comments on commit 919e2f8

Please sign in to comment.