File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
frontend/appflowy_flutter/lib/ai/service Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,14 @@ class ViewSelectorItem {
8181 }
8282 }
8383
84+ void setIsSelectedStatusRecursive (ViewSelectedStatus selectedStatus) {
85+ selectedStatusNotifier.value = selectedStatus;
86+
87+ for (final child in children) {
88+ child.setIsSelectedStatusRecursive (selectedStatus);
89+ }
90+ }
91+
8492 void dispose () {
8593 for (final child in children) {
8694 child.dispose ();
@@ -312,10 +320,12 @@ class ViewSelectorCubit extends Cubit<ViewSelectorState> {
312320 }
313321
314322 if (isSelectedSection) {
315- item.selectedStatusNotifier.value = item.selectedStatus.isUnselected ||
316- item.selectedStatus.isPartiallySelected
317- ? ViewSelectedStatus .selected
318- : ViewSelectedStatus .unselected;
323+ item.setIsSelectedStatusRecursive (
324+ item.selectedStatus.isUnselected ||
325+ item.selectedStatus.isPartiallySelected
326+ ? ViewSelectedStatus .selected
327+ : ViewSelectedStatus .unselected,
328+ );
319329 }
320330
321331 updateSelectedStatus ();
You can’t perform that action at this time.
0 commit comments