diff --git a/plasmoid/package/contents/ui/TasksExtendedManager.qml b/plasmoid/package/contents/ui/TasksExtendedManager.qml index 9aae9f796..90035556f 100644 --- a/plasmoid/package/contents/ui/TasksExtendedManager.qml +++ b/plasmoid/package/contents/ui/TasksExtendedManager.qml @@ -371,7 +371,10 @@ Item { Timer { id: delayedLaynchersSyncTimer interval: 450 - onTriggered: tasksModel.syncLaunchers(); + onTriggered: { + tasksModel.syncLaunchers(); + _launchers.validateSyncedLaunchersOrder(); + } } diff --git a/plasmoid/package/contents/ui/abilities/Launchers.qml b/plasmoid/package/contents/ui/abilities/Launchers.qml index 97581cdc2..b6e9ca069 100644 --- a/plasmoid/package/contents/ui/abilities/Launchers.qml +++ b/plasmoid/package/contents/ui/abilities/Launchers.qml @@ -180,10 +180,16 @@ Item { } } - function validateLaunchersOrder(orderedLaunchers) { - validator.stop(); - validator.launchers = orderedLaunchers; - validator.start(); + function validateSyncedLaunchersOrder() { + if (bridge && !_launchers.inUniqueGroup()) { + bridge.launchers.validateSyncedLaunchersOrder(syncer.clientId, + group, + currentShownLauncherList()); + } else { + /*validator.stop(); + validator.launchers = orderedLaunchers; + validator.start();*/ + } } function inCurrentActivity(launcherUrl) { @@ -322,11 +328,7 @@ Item { } if (inDraggingPhase) { - if (_launchers.bridge && !_launchers.inUniqueGroup()) { - _launchers.bridge.launchers.validateSyncedLaunchersOrder(_launchers.syncer.clientId, - _launchers.group, - _launchers.currentShownLauncherList()); - } + _launchers.validateSyncedLaunchersOrder(); } } else { plasmoid.configuration.launchers59 = _launchers.tasksModel.launcherList; diff --git a/plasmoid/package/contents/ui/abilities/launchers/Syncer.qml b/plasmoid/package/contents/ui/abilities/launchers/Syncer.qml index d764df3a3..605d0f998 100644 --- a/plasmoid/package/contents/ui/abilities/launchers/Syncer.qml +++ b/plasmoid/package/contents/ui/abilities/launchers/Syncer.qml @@ -113,7 +113,9 @@ Item { function validateSyncedLaunchersOrder(group, orderedLaunchers) { if (group === _launchers.group && !isBlocked) { - _launchers.validateLaunchersOrder(orderedLaunchers); + validator.stop(); + validator.launchers = orderedLaunchers; + validator.start(); } }