Skip to content

Commit

Permalink
flutter: set the host when adding a group
Browse files Browse the repository at this point in the history
the group might have came from another window, so has another host
still
  • Loading branch information
iamsergio committed Jan 19, 2025
1 parent c400cf2 commit 8cfbf8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/flutter/dart/lib/models/DropArea.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ class DropArea implements ffi.Finalizable {
void _addGroup(Group group) {
_groups.add(group);
group.dropArea = this;

Bindings.instance.nativeLibrary
.set_guest_host(hostPtr.cast(), group.guestCpp.cast());

layoutChanged.emit();
}

Expand Down

0 comments on commit 8cfbf8f

Please sign in to comment.