From d6b6fb8a6bcd7ea026959efcb2d0542c7c7cc6c9 Mon Sep 17 00:00:00 2001 From: f321x Date: Wed, 21 Jan 2026 10:37:45 +0100 Subject: [PATCH] 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. --- electrum/gui/qml/components/Preferences.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/electrum/gui/qml/components/Preferences.qml b/electrum/gui/qml/components/Preferences.qml index c65fee725..859584087 100644 --- a/electrum/gui/qml/components/Preferences.qml +++ b/electrum/gui/qml/components/Preferences.qml @@ -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')