fix(@desktop/wallet): modal is not being closed when clicking Add Account

This commit is contained in:
Andrei Smirnov 2021-07-20 07:37:57 +03:00 committed by Iuri Matias
parent 1621818ecf
commit a3979511e2
3 changed files with 8 additions and 10 deletions

View File

@ -13,7 +13,7 @@ StatusRoundButton {
width: 36 width: 36
height: 36 height: 36
readonly property var onAfterAddAccount: function() { readonly property var onAfterAddAccount: function() {
walletInfoContainer.changeSelectedAccount(walletModel.accounts.rowCount() - 1) walletInfoContainer.changeSelectedAccount(walletModel.accountsView.accounts.rowCount() - 1)
} }
onClicked: { onClicked: {

View File

@ -176,14 +176,14 @@ Item {
visible: !!validationError visible: !!validationError
id: validationErrorText id: validationErrorText
text: validationError text: validationError
anchors.top: inputRectangle.bottom anchors.top: inputField.bottom
anchors.topMargin: validationErrorTopMargin anchors.topMargin: validationErrorTopMargin
selectByMouse: true selectByMouse: true
readOnly: true readOnly: true
font.pixelSize: 12 font.pixelSize: 12
height: 16 height: 16
color: validationErrorColor color: validationErrorColor
width: inputRectangle.width width: inputField.width
wrapMode: TextEdit.Wrap wrapMode: TextEdit.Wrap
} }
} }

View File

@ -1,11 +1,9 @@
import QtQuick 2.13 import QtQuick 2.13
Image { Image {
sourceSize.width: width sourceSize.width: width || undefined
sourceSize.height: height sourceSize.height: height || undefined
fillMode: Image.PreserveAspectFit
fillMode: Image.PreserveAspectFit mipmap: true
antialiasing: true
mipmap: true
antialiasing: true
} }