quick frontend (widgets): don't use *args for onDelete + more debug logs
This commit is contained in:
parent
d9e1ba8ce1
commit
eca0f773cf
1 changed files with 5 additions and 2 deletions
|
|
@ -286,10 +286,13 @@ class QuickWidgetsManager(object):
|
|||
|
||||
if all_instances:
|
||||
for w in self.getWidgetInstances(widget_to_delete):
|
||||
if w.onDelete(*args, **kwargs) == False:
|
||||
if w.onDelete(**kwargs) == False:
|
||||
log.debug(
|
||||
f"Deletion of {widget_to_delete} cancelled by widget itself")
|
||||
return
|
||||
else:
|
||||
if widget_to_delete.onDelete(*args, **kwargs) == False:
|
||||
if widget_to_delete.onDelete(**kwargs) == False:
|
||||
log.debug(f"Deletion of {widget_to_delete} cancelled by widget itself")
|
||||
return
|
||||
|
||||
if self.host.selected_widget == widget_to_delete:
|
||||
|
|
|
|||
Loading…
Reference in a new issue