fixes
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import QtQuick 2.6
|
||||||
import QtQuick.Layouts 1.0
|
import QtQuick.Layouts 1.0
|
||||||
import QtQuick.Controls 2.1
|
import QtQuick.Controls 2.1
|
||||||
|
|
||||||
@@ -6,7 +7,7 @@ WizardComponent {
|
|||||||
|
|
||||||
onAccept: {
|
onAccept: {
|
||||||
wizard_data['password'] = password1.text
|
wizard_data['password'] = password1.text
|
||||||
wizard_data['encrypt'] = doencrypt.checked
|
wizard_data['encrypt'] = password1.text != ''
|
||||||
}
|
}
|
||||||
|
|
||||||
GridLayout {
|
GridLayout {
|
||||||
@@ -20,10 +21,5 @@ WizardComponent {
|
|||||||
id: password2
|
id: password2
|
||||||
echoMode: TextInput.Password
|
echoMode: TextInput.Password
|
||||||
}
|
}
|
||||||
CheckBox {
|
|
||||||
id: doencrypt
|
|
||||||
enabled: password1.text !== ''
|
|
||||||
text: qsTr('Encrypt wallet')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ class QEDaemon(QObject):
|
|||||||
try:
|
try:
|
||||||
storage = WalletStorage(self._path)
|
storage = WalletStorage(self._path)
|
||||||
if not storage.file_exists():
|
if not storage.file_exists():
|
||||||
self.walletOpenError.emit(qsTr('File not found'))
|
self.walletOpenError.emit('File not found')
|
||||||
return
|
return
|
||||||
except StorageReadWriteError as e:
|
except StorageReadWriteError as e:
|
||||||
self.walletOpenError.emit('Storage read/write error')
|
self.walletOpenError.emit('Storage read/write error')
|
||||||
|
|||||||
Reference in New Issue
Block a user