Browse Source

fixes

patch-4
Sander van Grieken 3 years ago
parent
commit
45f50d3078
  1. 8
      electrum/gui/qml/components/wizard/WCWalletPassword.qml
  2. 2
      electrum/gui/qml/qedaemon.py

8
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')
}
}
}

2
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')

Loading…
Cancel
Save