1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-04 20:48:29 -04:00

plugins: prevent churn of daemon plugins by not re-creating the entire map

fixes #2860

port 1.5

(cherry picked from commit 1973526c4e)
This commit is contained in:
bbedward
2026-07-14 11:46:40 -04:00
committed by dms-ci[bot]
parent 4dda0e3a5e
commit bd159be414
2 changed files with 88 additions and 72 deletions
-23
View File
@@ -41,29 +41,6 @@ Item {
osdSurfaceReloadTimer.restart();
}
Instantiator {
id: daemonPluginInstantiator
asynchronous: true
model: Object.keys(PluginService.pluginDaemonComponents)
delegate: Loader {
id: daemonLoader
property string pluginId: modelData
sourceComponent: PluginService.pluginDaemonComponents[pluginId]
onLoaded: {
if (item) {
item.pluginService = PluginService;
if (item.popoutService !== undefined) {
item.popoutService = PopoutService;
}
item.pluginId = pluginId;
log.info("Daemon plugin loaded:", pluginId);
}
}
}
}
Loader {
id: blurredWallpaperBackgroundLoader
active: SettingsData.blurredWallpaperLayer && CompositorService.isNiri