From 45f50d3078f268dbbe6d7504fbbbe14546d8245f Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Wed, 16 Mar 2022 22:37:02 +0100 Subject: [PATCH] fixes --- electrum/gui/qml/components/wizard/WCWalletPassword.qml | 8 ++------ electrum/gui/qml/qedaemon.py | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/electrum/gui/qml/components/wizard/WCWalletPassword.qml b/electrum/gui/qml/components/wizard/WCWalletPassword.qml index 9da3681ff..51c5cc468 100644 --- a/electrum/gui/qml/components/wizard/WCWalletPassword.qml +++ b/electrum/gui/qml/components/wizard/WCWalletPassword.qml @@ -1,3 +1,4 @@ +import QtQuick 2.6 import QtQuick.Layouts 1.0 import QtQuick.Controls 2.1 @@ -6,7 +7,7 @@ WizardComponent { onAccept: { wizard_data['password'] = password1.text - wizard_data['encrypt'] = doencrypt.checked + wizard_data['encrypt'] = password1.text != '' } GridLayout { @@ -20,10 +21,5 @@ WizardComponent { id: password2 echoMode: TextInput.Password } - CheckBox { - id: doencrypt - enabled: password1.text !== '' - text: qsTr('Encrypt wallet') - } } } diff --git a/electrum/gui/qml/qedaemon.py b/electrum/gui/qml/qedaemon.py index ce6030e55..4402ee708 100644 --- a/electrum/gui/qml/qedaemon.py +++ b/electrum/gui/qml/qedaemon.py @@ -107,7 +107,7 @@ class QEDaemon(QObject): try: storage = WalletStorage(self._path) if not storage.file_exists(): - self.walletOpenError.emit(qsTr('File not found')) + self.walletOpenError.emit('File not found') return except StorageReadWriteError as e: self.walletOpenError.emit('Storage read/write error')