ignore deletes when they are already deleted

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-19 20:35:33 -06:00
parent d15fa1cf88
commit 54a01b3bf1
1 changed files with 4 additions and 0 deletions

View File

@ -193,6 +193,10 @@ func processAction(a *widget.Action) {
n := me.treeRoot.FindWidgetId(a.WidgetId) n := me.treeRoot.FindWidgetId(a.WidgetId)
if n == nil { if n == nil {
if a.ActionType == widget.Delete {
// this is normal. the widget is aleady deleted
return
}
log.Error(errors.New("andlabs processAction() ERROR findWidgetId found nil"), a.ActionType, a.WidgetType) log.Error(errors.New("andlabs processAction() ERROR findWidgetId found nil"), a.ActionType, a.WidgetType)
log.Log(NOW, "processAction() ERROR findWidgetId found nil for id =", a.WidgetId) log.Log(NOW, "processAction() ERROR findWidgetId found nil for id =", a.WidgetId)
log.Log(NOW, "processAction() ERROR findWidgetId found nil", a.ActionType, a.WidgetType) log.Log(NOW, "processAction() ERROR findWidgetId found nil", a.ActionType, a.WidgetType)