Warning, /plasma/latte-dock/declarativeimports/abilities/bridge/Launchers.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2021 Michail Vourlakos <mvourlakos@gmail.com>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 import QtQuick 2.0
0007 
0008 BridgeItem {
0009     id: launchersBridge
0010     readonly property bool isConnected: host && client
0011 
0012     onClientChanged: {
0013         if (client) {
0014             if (host.appletIdStealingDroppedLaunchers !== launchersBridge.appletIndex) {
0015                 client.disabledIsStealingDroppedLaunchers();
0016             }
0017         }
0018     }
0019 
0020     Connections {
0021         target: client
0022         onIsStealingDroppedLaunchersChanged: {
0023             if (isConnected && client.isStealingDroppedLaunchers) {
0024                 host.currentAppletStealingDroppedLaunchers(appletIndex);
0025             }
0026         }
0027     }
0028 
0029     Connections {
0030         target: host
0031         onCurrentAppletStealingDroppedLaunchers: {
0032             if (appletIndex !== id && client) {
0033                 client.disabledIsStealingDroppedLaunchers();
0034             }
0035         }
0036     }
0037 }