1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-04 04:42:05 -04:00

plugins: fix settings focus loss

This commit is contained in:
bbedward
2026-02-18 13:36:06 -05:00
parent 9723661c80
commit d8cf1af422

View File

@@ -376,22 +376,12 @@ FocusScope {
return;
var isLauncher = plugin.type === "launcher" || (plugin.capabilities && plugin.capabilities.includes("launcher"));
if (isLauncher) {
pluginReloadTimer.pendingPluginId = pluginId;
pluginReloadTimer.restart();
pluginsTab.isReloading = true;
PluginService.reloadPlugin(pluginId);
}
}
}
Timer {
id: pluginReloadTimer
property string pendingPluginId: ""
interval: 500
onTriggered: {
if (pendingPluginId)
PluginService.reloadPlugin(pendingPluginId);
}
}
Connections {
target: DMSService
function onPluginsListReceived(plugins) {