Addressed PR feedback

This commit is contained in:
Andrei Smirnov 2021-08-12 15:09:57 +03:00 committed by Iuri Matias
parent 84472fbcb9
commit b7ca0aaf14
2 changed files with 7 additions and 4 deletions

View File

@ -122,7 +122,10 @@ QtObject:
read = getEnsManager read = getEnsManager
proc changePassword(self: ProfileView, password: string, newPassword: string): bool {.slot.} = proc changePassword(self: ProfileView, password: string, newPassword: string): bool {.slot.} =
if not status_accounts.changeDatabasePassword(self.profile.address, password, newPassword): try:
if not status_accounts.changeDatabasePassword(self.profile.address, password, newPassword):
return false
except:
return false return false
quit(QuitSuccess) # quits the app TODO: change this to logout instead when supported quit(QuitSuccess) # quits the app TODO: change this to logout instead when supported

View File

@ -37,7 +37,7 @@ ModalPopup {
ColumnLayout { ColumnLayout {
anchors.fill: parent anchors.fill: parent
anchors.margins: 32 anchors.margins: Style.current.xlPadding
spacing: Style.current.xlPadding spacing: Style.current.xlPadding
Input { Input {
@ -93,7 +93,7 @@ ModalPopup {
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
color: Style.current.danger color: Style.current.danger
font.pixelSize: 12 font.pixelSize: Style.current.tertiaryTextFontSize
} }
StyledText { StyledText {
@ -103,7 +103,7 @@ ModalPopup {
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
color: Style.current.secondaryText color: Style.current.secondaryText
font.pixelSize: 12 font.pixelSize: Style.current.tertiaryTextFontSize
} }
} }