Files
purple-electrumwallet/electrum/gui/qml/components/wizard/WCWalletName.qml
T
f321x d34129ef5c qml: deduplicate wallet name validation
Deduplicates the wallet name validation between wizard and daemon.
2026-04-23 16:11:36 +02:00

34 lines
656 B
QML

import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import org.electrum 1.0
WizardComponent {
valid: Daemon.isValidWalletName(wallet_name.text)
function apply() {
wizard_data['wallet_name'] = wallet_name.text
}
ColumnLayout {
width: parent.width
Label {
text: qsTr('Wallet name')
}
TextField {
id: wallet_name
Layout.fillWidth: true
focus: true
text: Daemon.suggestWalletName()
inputMethodHints: Qt.ImhNoPredictiveText
}
}
Component.onCompleted: {
wallet_name.forceActiveFocus()
}
}