1
0

qml: add config setting for max brightness on qr display

This commit is contained in:
Josh Geden
2024-11-23 21:44:02 -08:00
committed by Sander van Grieken
parent a084ccc74c
commit 6331448860
5 changed files with 36 additions and 4 deletions

View File

@@ -210,6 +210,10 @@ class QEAppController(BaseCrashReporter, QObject):
it = jIntent.createChooser(sendIntent, cast('java.lang.CharSequence', jString(title)))
jpythonActivity.startActivity(it)
@pyqtSlot()
def isMaxBrightnessOnQrDisplayEnabled(self):
return self.config.GUI_QML_SET_MAX_BRIGHTNESS_ON_QR_DISPLAY
@pyqtSlot()
def setMaxScreenBrightness(self):
self._set_screen_brightness(1.0)