mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
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:
parent
276dec15ee
commit
9b30adf533
1 changed files with 6 additions and 1 deletions
|
|
@ -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");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue