mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-02 03:28:28 -04:00
launcher: don't select pre-filled queries, exclude from memory
port 1.5
This commit is contained in:
@@ -370,6 +370,7 @@ Item {
|
||||
}
|
||||
if (spotlightContent.controller) {
|
||||
var targetMode = mode || SessionData.getLauncherRestoreMode();
|
||||
spotlightContent.controller.explicitQuerySession = !!query;
|
||||
spotlightContent.controller.searchMode = targetMode;
|
||||
spotlightContent.controller.activePluginId = "";
|
||||
spotlightContent.controller.activePluginName = "";
|
||||
@@ -430,7 +431,10 @@ Item {
|
||||
root.keyboardActive = true;
|
||||
if (root.spotlightContent && root.spotlightContent.searchField) {
|
||||
root.spotlightContent.searchField.forceActiveFocus();
|
||||
root.spotlightContent.searchField.selectAll();
|
||||
if (query)
|
||||
root.spotlightContent.searchField.cursorPosition = root.spotlightContent.searchField.text.length;
|
||||
else
|
||||
root.spotlightContent.searchField.selectAll();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user