1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-05 21:18:30 -04:00

launcher: don't select pre-filled queries, exclude from memory

port 1.5
This commit is contained in:
bbedward
2026-07-13 10:31:17 -04:00
parent 06c0ea2afb
commit ea66b136ba
9 changed files with 107 additions and 16 deletions
@@ -154,10 +154,14 @@ Item {
if (spotlightContent.searchField) {
spotlightContent.searchField.text = targetQuery;
spotlightContent.searchField.selectAll();
if (query)
spotlightContent.searchField.cursorPosition = targetQuery.length;
else
spotlightContent.searchField.selectAll();
}
if (spotlightContent.controller) {
var targetMode = mode || SessionData.getLauncherRestoreMode();
spotlightContent.controller.explicitQuerySession = !!query;
spotlightContent.controller.searchMode = targetMode;
spotlightContent.controller.activePluginId = "";
spotlightContent.controller.activePluginName = "";