feat(ui): auto-exit bulk mode after all bulk operations complete

This commit is contained in:
Will Miao
2026-07-06 18:51:33 +08:00
parent 54b44131b6
commit b019326747
2 changed files with 20 additions and 4 deletions

View File

@@ -330,8 +330,9 @@ class MoveManager {
.filter(r => r.success)
.map(r => ({ original_file_path: r.original_file_path, new_file_path: r.new_file_path }));
// Deselect moving items
// Deselect moving items and exit bulk mode
this.bulkFilePaths.forEach(path => bulkManager.deselectItem(path));
if (state.bulkMode) bulkManager.toggleBulkMode();
} else {
// Single move mode
const result = await apiClient.moveSingleModel(this.currentFilePath, targetPath, this.useDefaultPath);