From 2dc46c186ea42f278b8ee0df1e81b7fa292ab092 Mon Sep 17 00:00:00 2001 From: E44 <129310925+programmer-44@users.noreply.github.com> Date: Sun, 14 Jun 2026 20:34:38 +0200 Subject: [PATCH] chore(control): update files only of online displays when changing file path --- control/frontend/src/lib/ts/stores/files.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/control/frontend/src/lib/ts/stores/files.ts b/control/frontend/src/lib/ts/stores/files.ts index ef3ee05..2666c7b 100755 --- a/control/frontend/src/lib/ts/stores/files.ts +++ b/control/frontend/src/lib/ts/stores/files.ts @@ -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); } }