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.
25 lines
636 B
QML
25 lines
636 B
QML
/*
|
|
SPDX-FileCopyrightText: 2020 Michail Vourlakos <mvourlakos@gmail.com>
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
import QtQuick 2.0
|
|
|
|
import org.kde.latte.abilities.definition 0.1 as AbilityDefinition
|
|
|
|
AbilityDefinition.UserRequests {
|
|
id: _userRequests
|
|
property Item bridge: null
|
|
readonly property bool isActive: bridge !== null
|
|
|
|
function updateSignals() {
|
|
if (isActive) {
|
|
bridge.userRequests.sglViewType.connect(_userRequests.sglViewType);
|
|
}
|
|
}
|
|
|
|
onIsActiveChanged: updateSignals()
|
|
Component.onCompleted: updateSignals()
|
|
Component.onDestruction: updateSignals()
|
|
}
|