chore(control): update files only of online displays when changing file path

This commit is contained in:
E44
2026-06-14 20:34:38 +02:00
parent 2dd390e815
commit 2dc46c186e
+2 -4
View File
@@ -7,7 +7,7 @@ import {
type Inode,
type TreeElement
} from '../types';
import { get_display_by_id, selected_online_display_ids } from './displays';
import { get_display_by_id, online_displays, selected_online_display_ids } from './displays';
import { is_selected, select, selected_display_ids, selected_file_ids } from './select';
import { create_path, get_file_data, get_file_tree_data } from '../api_handler';
import { deactivate_old_thumbnail_urls, generate_thumbnail } from './thumbnails';
@@ -26,9 +26,7 @@ export async function change_file_path(new_path: string) {
deactivate_old_thumbnail_urls();
const displays = await db.displays.toArray();
for (const display of displays) {
for (const display of get(online_displays)) {
await update_changed_directories(display, new_path);
}
}