28 lines
597 B
QML
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()
|
|
}
|
|
}
|