Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: switching to selection mode from 2 files

Ilian Sapundshievc820d4029be9
diff --git a/src/renderer/perspectives/grid-perspective/components/MainContainer.tsx b/src/renderer/perspectives/grid-perspective/components/MainContainer.tsx
index c517fcc01..50b1d7348 100644
--- a/src/renderer/perspectives/grid-perspective/components/MainContainer.tsx
+++ b/src/renderer/perspectives/grid-perspective/components/MainContainer.tsx
@@ -340,7 +340,7 @@ function GridPerspective(props: Props) {
handleSetSelectedEntries(newSelection);
};
- const selectionMode = selectedEntries.length > 0;
+ const selectionMode = selectedEntries.length > 1;
return (
<TagDropContainer
entryPath={fsEntry.path} // TODO remove entryPath it is already included in selectedEntries
diff --git a/src/renderer/perspectives/list/components/MainContainer.tsx b/src/renderer/perspectives/list/components/MainContainer.tsx
index 4105137a4..0db6fea06 100644
--- a/src/renderer/perspectives/list/components/MainContainer.tsx
+++ b/src/renderer/perspectives/list/components/MainContainer.tsx
@@ -337,7 +337,7 @@ function ListPerspective(props: Props) {
handleSetSelectedEntries(newSelection);
};
- const selectionMode = selectedEntries.length > 0;
+ const selectionMode = selectedEntries.length > 1;
return (
<TagDropContainer
entryPath={fsEntry.path} // TODO remove entryPath it is already included in selectedEntries