fix kscreenosd quicksetting

Somehow the part that enables and disabled this quicksetting got lost
while everything needed is in place. So add it, which fixes showing and
hiding this quicksettings button.

Signed-off-by: Sebastian Kügler <sebas@kde.org>
This commit is contained in:
Sebastian Kügler 2025-08-21 11:53:37 +02:00
parent 276dec15ee
commit 9b30adf533

View file

@ -13,7 +13,12 @@ QS.QuickSetting {
settingsCommand: "plasma-open-settings kcm_kscreen" settingsCommand: "plasma-open-settings kcm_kscreen"
status: i18nc("kscreen osd quicksetting", "Tap to set up") status: i18nc("kscreen osd quicksetting", "Tap to set up")
enabled: false enabled: false
available: true available: KScreenOSDUtil.outputs > 1
Connections {
target: KScreenOSDUtil
onOutputsChanged: kscreenosd_qs.available = (KScreenOSDUtil.outputs > 1)
}
function toggle() { function toggle() {
console.log("Showing KScreen OSD"); console.log("Showing KScreen OSD");