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

@ -157,6 +157,11 @@ class SidebandService():
self.should_run = False
sleep_time = 0
if self.sideband.getstate("wants.clear_notifications"):
self.sideband.setstate("wants.clear_notifications", False)
if self.notification_service != None:
self.notification_service.cancelAll()
time.sleep(sleep_time)
self.release_locks()