fix: one-frame glitch when deleting all sorts (#3330)

This commit is contained in:
Richard Shiue 2023-09-10 15:50:49 +08:00 committed by GitHub
parent 2f6df6a17d
commit 35f84e42cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,6 +210,7 @@ class DatabaseDeleteSortButton extends StatelessWidget {
context
.read<SortEditorBloc>()
.add(const SortEditorEvent.deleteAllSorts());
PopoverContainer.of(context).close();
},
leftIcon: const FlowySvg(FlowySvgs.delete_s),
),