From 428350f5205cff6cef678acceb7b17aa8f42ceb4 Mon Sep 17 00:00:00 2001 From: PJ Date: Fri, 9 Aug 2024 02:18:19 -0400 Subject: [PATCH] Fix for menu changes in 1.7 --- manifest.json | 4 ++-- pnpm-lock.yaml | 2 +- src/FolderMenu.ts | 2 +- versions.json | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index 76067c7..962c99a 100644 --- a/manifest.json +++ b/manifest.json @@ -3,8 +3,8 @@ "name": "Quick Explorer", "author": "PJ Eby", "authorUrl": "https://github.com/pjeby", - "version": "0.2.8", + "version": "0.2.9", "description": "Perform file explorer operations (and see your current file path) from the title bar, using the mouse or keyboard", - "minAppVersion": "0.15.9", + "minAppVersion": "1.5.8", "isDesktopOnly": true } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 97652b5..9147677 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,4 +1,4 @@ -lockfileVersion: 5.3 +lockfileVersion: 5.4 specifiers: '@ophidian/build': ^1.0.1 diff --git a/src/FolderMenu.ts b/src/FolderMenu.ts index 3cbccef..d0a69e1 100644 --- a/src/FolderMenu.ts +++ b/src/FolderMenu.ts @@ -220,7 +220,7 @@ export class FolderMenu extends PopupMenu implements HoverParent { } loadFiles(folder: TFolder, selectedFile?: TAbstractFile) { - this.dom.empty(); this.items = []; + this.items.forEach(i => i.dom.detach()); this.items = []; const {folderNote, folders, files} = sortedFiles(folder); if (folderNote) { this.addFile(folderNote); diff --git a/versions.json b/versions.json index 19fecf4..b2c7c1b 100644 --- a/versions.json +++ b/versions.json @@ -1,4 +1,5 @@ { + "0.2.9": "1.5.8", "0.2.8": "0.15.9", "0.1.41": "0.15.9", "0.1.37": "0.14.5",