1
0
Files
electrum/electrum/gui/qml/components/wizard/WCWalletName.qml
SomberNight 87909485c5 qml: wizard to check if wallet name is already used
was erroring at the very last moment previously
2023-04-27 08:47:02 +00:00

28 lines
597 B
QML

import QtQuick 2.6
import QtQuick.Layouts 1.0
import QtQuick.Controls 2.1
import org.electrum 1.0
WizardComponent {
valid: wallet_name.text.length > 0 && !Daemon.availableWallets.wallet_name_exists(wallet_name.text)
function apply() {
wizard_data['wallet_name'] = wallet_name.text
}
GridLayout {
columns: 1
Label { text: qsTr('Wallet name') }
TextField {
id: wallet_name
focus: true
text: Daemon.suggestWalletName()
}
}
Component.onCompleted: {
wallet_name.forceActiveFocus()
}
}