From c2d83ca05199603a8d52bd4254f26b2d42ad3873 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Fri, 21 Mar 2025 16:51:37 +1300 Subject: [PATCH] Fix quick search history --- src/app.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app.js b/src/app.js index fe399f4f..2205ee9d 100644 --- a/src/app.js +++ b/src/app.js @@ -4098,7 +4098,8 @@ console.log(`isLinux: ${LINUX}`); $app.methods.quickSearchRemoteMethod = function (query) { if (!query) { - this.quickSearchItems = []; + this.quickSearchItems = this.quickSearchUserHistory(); + return; } const results = []; @@ -4194,7 +4195,6 @@ console.log(`isLinux: ${LINUX}`); } else { this.showUserDialog(value); } - this.quickSearchUserHistory(); } }; @@ -4218,7 +4218,7 @@ console.log(`isLinux: ${LINUX}`); }); } }); - this.quickSearchItems = results; + return results; }; // #endregion @@ -8973,6 +8973,7 @@ console.log(`isLinux: ${LINUX}`); }); this.showUserDialogHistory.delete(userId); this.showUserDialogHistory.add(userId); + this.quickSearchItems = this.quickSearchUserHistory(); }; $app.methods.applyUserDialogLocation = function (updateInstanceOccupants) {