From 8bef77235f4dc23df0e0f0feb959e69d1693d9be Mon Sep 17 00:00:00 2001
From: John Molakvoæ <skjnldsv@protonmail.com>
Date: Fri, 7 Apr 2023 11:46:41 +0200
Subject: feat(files): implement shift-select
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
---
 apps/files/src/components/FilesListHeader.vue | 1 +
 1 file changed, 1 insertion(+)

(limited to 'apps/files/src/components/FilesListHeader.vue')

diff --git a/apps/files/src/components/FilesListHeader.vue b/apps/files/src/components/FilesListHeader.vue
index 288154e3c91..58ec46afba5 100644
--- a/apps/files/src/components/FilesListHeader.vue
+++ b/apps/files/src/components/FilesListHeader.vue
@@ -183,6 +183,7 @@ export default Vue.extend({
 			if (selected) {
 				const selection = this.nodes.map(node => node.attributes.fileid.toString())
 				logger.debug('Added all nodes to selection', { selection })
+				this.selectionStore.setLastIndex(null)
 				this.selectionStore.set(selection)
 			} else {
 				logger.debug('Cleared selection')
-- 
cgit v1.2.3

