diff --git a/src/flutter/dart/lib/models/FloatingItem.dart b/src/flutter/dart/lib/models/FloatingItem.dart index 45a306dce..75d5157ef 100644 --- a/src/flutter/dart/lib/models/FloatingItem.dart +++ b/src/flutter/dart/lib/models/FloatingItem.dart @@ -32,12 +32,7 @@ class FloatingItem implements ItemWithTitleBar { @override void close() { - if (!DockRegistry.instance.containsFloatingItem(this)) { - // we're closed already, can be removed once we can _groupCountChangedConnection.disconnect() - return; - } - - // _groupCountChangedConnection.disconnect(); signals_slot bug + _groupCountChangedConnection.disconnect(); DockRegistry.instance.removeFloatingItem(this); } } diff --git a/src/flutter/dart/pubspec.yaml b/src/flutter/dart/pubspec.yaml index 6dd5a7df3..31caaf6f0 100644 --- a/src/flutter/dart/pubspec.yaml +++ b/src/flutter/dart/pubspec.yaml @@ -10,7 +10,7 @@ dependencies: meta: flutter: sdk: flutter - signals_slots: ^1.1.0 + signals_slots: ^1.1.1 dev_dependencies: lints: ^5.0.0