mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-30 00:12:50 -05:00
fix: pass query string to launcher v2 during IPC toggle (#1477)
Ensure toggleQuery forwards the query parameter to the launcher v2
This commit is contained in:
@@ -1063,7 +1063,7 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function toggleQuery(query: string): string {
|
function toggleQuery(query: string): string {
|
||||||
PopoutService.toggleDankLauncherV2();
|
PopoutService.toggleDankLauncherV2WithQuery(query);
|
||||||
return "LAUNCHER_TOGGLE_QUERY_SUCCESS";
|
return "LAUNCHER_TOGGLE_QUERY_SUCCESS";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1107,7 +1107,7 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function toggleQuery(query: string): string {
|
function toggleQuery(query: string): string {
|
||||||
PopoutService.toggleDankLauncherV2();
|
PopoutService.toggleDankLauncherV2WithQuery(query);
|
||||||
return "SPOTLIGHT_TOGGLE_QUERY_SUCCESS";
|
return "SPOTLIGHT_TOGGLE_QUERY_SUCCESS";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -186,6 +186,14 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function toggleWithQuery(query) {
|
||||||
|
if (spotlightOpen) {
|
||||||
|
hide();
|
||||||
|
} else {
|
||||||
|
showWithQuery(query);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: closeCleanupTimer
|
id: closeCleanupTimer
|
||||||
interval: Theme.expressiveDurations.expressiveFastSpatial + 50
|
interval: Theme.expressiveDurations.expressiveFastSpatial + 50
|
||||||
|
|||||||
@@ -416,6 +416,17 @@ Singleton {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function toggleDankLauncherV2WithQuery(query: string) {
|
||||||
|
if (dankLauncherV2Modal) {
|
||||||
|
dankLauncherV2Modal.toggleWithQuery(query);
|
||||||
|
} else if (dankLauncherV2ModalLoader) {
|
||||||
|
_dankLauncherV2PendingQuery = query;
|
||||||
|
_dankLauncherV2WantsOpen = true;
|
||||||
|
_dankLauncherV2WantsToggle = false;
|
||||||
|
dankLauncherV2ModalLoader.active = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function _onDankLauncherV2ModalLoaded() {
|
function _onDankLauncherV2ModalLoaded() {
|
||||||
if (_dankLauncherV2WantsOpen) {
|
if (_dankLauncherV2WantsOpen) {
|
||||||
_dankLauncherV2WantsOpen = false;
|
_dankLauncherV2WantsOpen = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user