From 64d5bbfdc3b887095d00fd1ddee302a991c4c068 Mon Sep 17 00:00:00 2001 From: edu4rdshl Date: Mon, 25 May 2026 03:43:09 -0500 Subject: [PATCH] fix: avoid double-destroy in clearItems() Each ClipboardItem widget is a direct child of _itemList. destroy_all_children() already destroys all of them. Calling widget.destroy() on each one beforehand triggered destruction twice on the same actor, causing spurious warnings. Drop the forEach loop and rely solely on destroy_all_children(). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- strata@edu4rdshl.dev/ui/panel.js | 1 - 1 file changed, 1 deletion(-) diff --git a/strata@edu4rdshl.dev/ui/panel.js b/strata@edu4rdshl.dev/ui/panel.js index 82d6818..39b8b27 100644 --- a/strata@edu4rdshl.dev/ui/panel.js +++ b/strata@edu4rdshl.dev/ui/panel.js @@ -303,7 +303,6 @@ export class StrataPanel { this._items = []; this._hoveredWidget = null; this._activeWidget = null; - this._widgets.forEach(w => w.destroy()); this._widgets.clear(); this._itemList.destroy_all_children(); }