mirror of
https://github.com/markqvist/Sideband.git
synced 2025-08-02 03:26:25 -04:00
Notification logic
This commit is contained in:
parent
93d214ead6
commit
a74e0f9cf7
3 changed files with 13 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue