1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-03 20:32:07 -04:00

launcher v2: add visibility guards

This commit is contained in:
bbedward
2026-02-10 17:40:41 -05:00
parent 081b15e24c
commit 1cdec5d687
3 changed files with 13 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ Item {
property string activePluginId: ""
property var collapsedSections: ({})
property bool keyboardNavigationActive: false
property bool active: false
property var _modeSectionsCache: ({})
property bool _queryDrivenSearch: false
property bool _diskCacheConsumed: false
@@ -52,6 +53,8 @@ Item {
Connections {
target: AppSearchService
function onCacheVersionChanged() {
if (!active)
return;
_clearModeCache();
if (!searchQuery && searchMode === "all")
performSearch();
@@ -61,6 +64,8 @@ Item {
Connections {
target: PluginService
function onRequestLauncherUpdate(pluginId) {
if (!active)
return;
if (activePluginId === pluginId) {
if (activePluginCategories.length <= 1)
loadPluginCategories(pluginId);