From 97ff7789b77020decbb0921a932ae327917098ae Mon Sep 17 00:00:00 2001 From: quorafind <951011105@qq.com> Date: Thu, 31 Oct 2024 16:19:18 +0800 Subject: [PATCH] chore: bump version --- manifest.json | 4 ++-- package.json | 2 +- src/floatSearchIndex.ts | 6 ++++-- versions.json | 3 ++- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/manifest.json b/manifest.json index cc7c442..bfcc762 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "float-search", "name": "Floating Search", - "version": "3.5.1", + "version": "4.0.0", "minAppVersion": "0.15.0", "description": "You can use search view in modal/leaf/popout window now.", "author": "Boninall", @@ -12,4 +12,4 @@ "支付宝": "https://cdn.jsdelivr.net/gh/Quorafind/.github@main/IMAGE/%E6%94%AF%E4%BB%98%E5%AE%9D%E4%BB%98%E6%AC%BE%E7%A0%81.jpg" }, "isDesktopOnly": false -} +} \ No newline at end of file diff --git a/package.json b/package.json index 913e603..6d34390 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "float-search", - "version": "3.5.1", + "version": "4.0.0", "description": "You can use search view in modal/leaf/popout window now.", "main": "main.js", "scripts": { diff --git a/src/floatSearchIndex.ts b/src/floatSearchIndex.ts index dfa1463..5096a84 100644 --- a/src/floatSearchIndex.ts +++ b/src/floatSearchIndex.ts @@ -810,9 +810,11 @@ export default class FloatSearchPlugin extends Plugin { around(manager.constructor.prototype, { dragFile(old: any) { return function (e: any, a: TFile) { - self?.modal?.close(); - const result = old.call(this, e, a); + + setTimeout(() => { + self?.modal?.close(); + }, 10); return result; }; }, diff --git a/versions.json b/versions.json index 7fe1990..12c6b79 100644 --- a/versions.json +++ b/versions.json @@ -29,5 +29,6 @@ "3.4.9": "0.15.0", "3.4.10": "0.15.0", "3.5.0": "0.15.0", - "3.5.1": "0.15.0" + "3.5.1": "0.15.0", + "4.0.0": "0.15.0" } \ No newline at end of file