1
0

qml: shorten max brightnes preference string

Shorten the max brightness preference string so it fits in a single line
and disable it if the system is not on Android.
This commit is contained in:
f321x
2026-01-21 10:37:45 +01:00
parent 5d31401211
commit d6b6fb8a6b

View File

@@ -197,6 +197,7 @@ Pane {
Layout.columnSpan: 2
Layout.fillWidth: true
spacing: 0
enabled: AppController.isAndroid()
Switch {
id: setMaxBrightnessOnQrDisplay
onCheckedChanged: {
@@ -206,7 +207,7 @@ Pane {
}
Label {
Layout.fillWidth: true
text: qsTr('Set display to max brightness when displaying QR codes')
text: qsTr('Increase brightness when displaying QR codes')
wrapMode: Text.Wrap
}
}
@@ -505,7 +506,7 @@ Pane {
useTrampolineRouting.checked = !Config.useGossip
enableDebugLogs.checked = Config.enableDebugLogs
disableScreenshots.checked = !Config.alwaysAllowScreenshots && AppController.isAndroid()
setMaxBrightnessOnQrDisplay.checked = Config.setMaxBrightnessOnQrDisplay
setMaxBrightnessOnQrDisplay.checked = Config.setMaxBrightnessOnQrDisplay && AppController.isAndroid()
useRecoverableChannels.checked = Config.useRecoverableChannels
syncLabels.checked = AppController.isPluginEnabled('labels')
psbtNostr.checked = AppController.isPluginEnabled('psbt_nostr')