diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2017-01-03 21:54:40 +0100 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2017-01-15 12:32:14 +0100 |
| commit | 8f56e9839739c8b0d821b1b38c06e458a1ab6d06 (patch) | |
| tree | ce1ceb4d87740d4e98afa7b15de04a3e10f3b83c /components | |
| parent | 842e4df22309dfcbb7ab534dc829e44b423eae4c (diff) | |
| download | monzero-gui-8f56e9839739c8b0d821b1b38c06e458a1ab6d06.tar.gz monzero-gui-8f56e9839739c8b0d821b1b38c06e458a1ab6d06.tar.xz monzero-gui-8f56e9839739c8b0d821b1b38c06e458a1ab6d06.zip | |
save wallet name in appwindow
Diffstat (limited to 'components')
| -rw-r--r-- | components/PasswordDialog.qml | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/components/PasswordDialog.qml b/components/PasswordDialog.qml index 19414987..1b83bcfa 100644 --- a/components/PasswordDialog.qml +++ b/components/PasswordDialog.qml @@ -52,13 +52,6 @@ Window { show() } - function usefulName(path) { - // arbitrary "short enough" limit - if (path.length < 32) - return path - return path.replace(/.*[\/\\]/, '').replace(/\.keys$/, '') - } - // TODO: implement without hardcoding sizes width: 480 height: walletName ? 240 : 200 @@ -74,7 +67,7 @@ Window { Layout.alignment: Qt.AlignHCenter Label { - text: root.walletName.length > 0 ? qsTr("Please enter wallet password for:<br>") + usefulName(root.walletName) : qsTr("Please enter wallet password") + text: root.walletName.length > 0 ? qsTr("Please enter wallet password for:<br>") + root.walletName : qsTr("Please enter wallet password") Layout.alignment: Qt.AlignHCenter Layout.columnSpan: 2 Layout.fillWidth: true |
