You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
957 B
QML
38 lines
957 B
QML
/*
|
|
SPDX-FileCopyrightText: 2021 Michail Vourlakos <mvourlakos@gmail.com>
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
import QtQuick 2.0
|
|
|
|
BridgeItem {
|
|
id: launchersBridge
|
|
readonly property bool isConnected: host && client
|
|
|
|
onClientChanged: {
|
|
if (client) {
|
|
if (host.appletIdStealingDroppedLaunchers !== launchersBridge.appletIndex) {
|
|
client.disabledIsStealingDroppedLaunchers();
|
|
}
|
|
}
|
|
}
|
|
|
|
Connections {
|
|
target: client
|
|
onIsStealingDroppedLaunchersChanged: {
|
|
if (isConnected && client.isStealingDroppedLaunchers) {
|
|
host.currentAppletStealingDroppedLaunchers(appletIndex);
|
|
}
|
|
}
|
|
}
|
|
|
|
Connections {
|
|
target: host
|
|
onCurrentAppletStealingDroppedLaunchers: {
|
|
if (appletIndex !== id && client) {
|
|
client.disabledIsStealingDroppedLaunchers();
|
|
}
|
|
}
|
|
}
|
|
}
|