quick app: check type in notify
This commit is contained in:
parent
61765efd9e
commit
2455e35c28
1 changed files with 4 additions and 2 deletions
|
|
@ -636,6 +636,7 @@ class QuickApp(object):
|
|||
@param cb_args(list, None): list of args for callback
|
||||
@param widget(object, None): widget where the notification happened
|
||||
"""
|
||||
assert type_ in C.NOTIFY_ALL
|
||||
notif_dict = self.profiles[profile].notifications
|
||||
key = '' if entity is None else entity.bare
|
||||
type_notifs = notif_dict.setdefault(key, {}).setdefault(type_, [])
|
||||
|
|
|
|||
Loading…
Reference in a new issue