Notification logic

This commit is contained in:
Mark Qvist 2022-10-02 12:15:37 +02:00
parent 93d214ead6
commit a74e0f9cf7
3 changed files with 13 additions and 3 deletions

View file

@ -160,6 +160,7 @@ class SidebandApp(MDApp):
def on_resume(self):
self.sideband.setstate("app.running", True)
self.sideband.setstate("app.foreground", True)
self.sideband.setstate("wants.clear_notifications", True)
self.app_state = SidebandApp.ACTIVE
def on_stop(self):
@ -494,6 +495,7 @@ class SidebandApp(MDApp):
self.root.ids.screen_manager.current = "conversations_screen"
self.root.ids.messages_scrollview.active_conversation = None
self.sideband.setstate("app.displaying", self.root.ids.screen_manager.current)
self.sideband.setstate("wants.clear_notifications", True)
def connectivity_status(self, sender):
hs = dp(22)