1
0

qml: Preferences: disable screenshot protection if !Android

Disables the "Always allow Screenshots" switch in the preferences if the
App isn't running on Android. QML doesn't have screenshot protection
outside of Android so this toggle is misleading.
This commit is contained in:
f321x
2026-01-20 13:19:05 +01:00
parent f8c44886f4
commit aaa314b36e

View File

@@ -300,6 +300,7 @@ Pane {
Layout.columnSpan: 2
Layout.fillWidth: true
spacing: 0
enabled: AppController.isAndroid()
Switch {
id: disableScreenshots
onCheckedChanged: {
@@ -503,7 +504,7 @@ Pane {
freezeReusedAddressUtxos.checked = Config.freezeReusedAddressUtxos
useTrampolineRouting.checked = !Config.useGossip
enableDebugLogs.checked = Config.enableDebugLogs
disableScreenshots.checked = !Config.alwaysAllowScreenshots
disableScreenshots.checked = !Config.alwaysAllowScreenshots && AppController.isAndroid()
setMaxBrightnessOnQrDisplay.checked = Config.setMaxBrightnessOnQrDisplay
useRecoverableChannels.checked = Config.useRecoverableChannels
syncLabels.checked = AppController.isPluginEnabled('labels')