diff --git a/example/edit_icon/lib/view/element_selector/delegate.dart b/example/edit_icon/lib/view/element_selector/delegate.dart index d84bccd..4d2a203 100644 --- a/example/edit_icon/lib/view/element_selector/delegate.dart +++ b/example/edit_icon/lib/view/element_selector/delegate.dart @@ -23,7 +23,7 @@ class ElementSelectorDelegate { for (var sub in _subscriptions) { if (sub.onRemove != null) await sub.onRemove!(index); } - onEmptied?.call(); + if (_items.isEmpty) onEmptied?.call(); } ElementSelectorDelegateSubscription subscribe(