From 54a01b3bf13758e1ffc8815e445bab003a9f4cfb Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 19 Jan 2024 20:35:33 -0600 Subject: [PATCH] ignore deletes when they are already deleted Signed-off-by: Jeff Carr --- action.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/action.go b/action.go index 42b0fbe..25f780a 100644 --- a/action.go +++ b/action.go @@ -193,6 +193,10 @@ func processAction(a *widget.Action) { n := me.treeRoot.FindWidgetId(a.WidgetId) 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.Log(NOW, "processAction() ERROR findWidgetId found nil for id =", a.WidgetId) log.Log(NOW, "processAction() ERROR findWidgetId found nil", a.ActionType, a.WidgetType)