1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-12 08:42:13 -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; return;
var isLauncher = plugin.type === "launcher" || (plugin.capabilities && plugin.capabilities.includes("launcher")); var isLauncher = plugin.type === "launcher" || (plugin.capabilities && plugin.capabilities.includes("launcher"));
if (isLauncher) { if (isLauncher) {
pluginReloadTimer.pendingPluginId = pluginId; pluginsTab.isReloading = true;
pluginReloadTimer.restart(); PluginService.reloadPlugin(pluginId);
} }
} }
} }
Timer {
id: pluginReloadTimer
property string pendingPluginId: ""
interval: 500
onTriggered: {
if (pendingPluginId)
PluginService.reloadPlugin(pendingPluginId);
}
}
Connections { Connections {
target: DMSService target: DMSService
function onPluginsListReceived(plugins) { function onPluginsListReceived(plugins) {