1
0

qml: implement toggle for android SECURE_FLAG and add marker to wizard pages

that should be secured.
This commit is contained in:
Sander van Grieken
2023-04-29 13:45:28 +02:00
parent 8a25d59ba6
commit 0672ea20ab
9 changed files with 30 additions and 1 deletions

View File

@@ -67,6 +67,7 @@ class QEAppController(BaseCrashReporter, QObject):
sendingBugreport = pyqtSignal()
sendingBugreportSuccess = pyqtSignal(str)
sendingBugreportFailure = pyqtSignal(str)
secureWindowChanged = pyqtSignal()
def __init__(self, qedaemon: 'QEDaemon', plugins: 'Plugins'):
BaseCrashReporter.__init__(self, None, None, None)
@@ -79,6 +80,7 @@ class QEAppController(BaseCrashReporter, QObject):
self._crash_user_text = ''
self._app_started = False
self._intent = ''
self._secureWindow = False
# set up notification queue and notification_timer
self.user_notification_queue = queue.Queue()
@@ -295,6 +297,18 @@ class QEAppController(BaseCrashReporter, QObject):
return
jview.performHapticFeedback(jHfc.VIRTUAL_KEY)
@pyqtProperty(bool, notify=secureWindowChanged)
def secureWindow(self):
return self._secureWindow
@secureWindow.setter
def secureWindow(self, secure):
if not self.isAndroid():
return
if self._secureWindow != secure:
jpythonActivity.setSecureWindow(secure)
self._secureWindow = secure
self.secureWindowChanged.emit()
class ElectrumQmlApplication(QGuiApplication):