From 252ac974becc234b40ee1912bde29fe0c7a7175f Mon Sep 17 00:00:00 2001 From: Mattias Granlund Date: Mon, 4 Nov 2024 23:24:28 +0100 Subject: [PATCH] Fix bug preventing file context menu to open - was happening for selected items --- apps/desktop/src/lib/file/FileListItem.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/desktop/src/lib/file/FileListItem.svelte b/apps/desktop/src/lib/file/FileListItem.svelte index 2f6dd2461..e99942853 100644 --- a/apps/desktop/src/lib/file/FileListItem.svelte +++ b/apps/desktop/src/lib/file/FileListItem.svelte @@ -175,7 +175,7 @@ ondragstart={handleDragStart} oncontextmenu={(e) => { if (fileIdSelection.has(file.id, $commit?.id)) { - contextMenu?.open(e, { files: selectedFiles }); + contextMenu?.open(e, { files: $selectedFiles }); } else { contextMenu?.open(e, { files: [file] }); }