Commit 3637ac7c authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Notifications] Add setting for do not disturb while screen sharing

On X11 we cannot control who may capture the screen,
so this setting is only shown on Wayland.
parent e83a0098
......@@ -87,6 +87,21 @@ KCM.SimpleKCM {
}
}
QtControls.CheckBox {
text: i18nc("Do not disturb while screen sharing", "Enable while screen sharing")
checked: kcm.dndSettings.whenScreenSharing
onClicked: kcm.dndSettings.whenScreenSharing = checked
// Only applicable to Wayland where we can control who can cast the screen
visible: Qt.platform.pluginName.includes("wayland")
KCM.SettingStateBinding {
configObject: kcm.dndSettings
settingName: "WhenScreenSharing"
extraEnabledConditions: root.notificationsAvailable
}
}
QtControls.CheckBox {
text: i18n("Show critical notifications")
checked: kcm.notificationSettings.criticalInDndMode
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment