add file pane select all and delete shortcuts

This commit is contained in:
ngfchl
2026-07-18 19:14:49 +08:00
parent ac6323171e
commit 238d44f2f8
2 changed files with 325 additions and 143 deletions
+1 -5
View File
@@ -531,11 +531,7 @@ class FileNotifier extends StateNotifier<FileState> {
}
void selectAll() {
if (state.selectedIDs.length == state.files.length) {
state = state.copyWith(selectedIDs: {});
} else {
state = state.copyWith(selectedIDs: state.files.map((f) => f.id).toSet());
}
state = state.copyWith(selectedIDs: state.files.map((f) => f.id).toSet());
}
void clearSelection() {