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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user