quick frontend (chat): use right type in getOrCreateWidget on new message
This commit is contained in:
parent
51cd3ce52a
commit
687ef5b6bd
1 changed files with 12 additions and 6 deletions
|
|
@ -184,13 +184,13 @@ class QuickWidgetsManager(object):
|
|||
if not "profiles" in _kwargs:
|
||||
_kwargs["profiles"] = None
|
||||
|
||||
# on_new_widget tell what to do for the new widget creation
|
||||
# on_new_widget tells what to do for the new widget creation
|
||||
try:
|
||||
on_new_widget = _kwargs.pop("on_new_widget")
|
||||
except KeyError:
|
||||
on_new_widget = C.WIDGET_NEW
|
||||
|
||||
# on_existing_widget tell what to do when the widget already exists
|
||||
# on_existing_widget tells what to do when the widget already exists
|
||||
try:
|
||||
on_existing_widget = _kwargs.pop("on_existing_widget")
|
||||
except KeyError:
|
||||
|
|
|
|||
Loading…
Reference in a new issue