Addressed PR feedback
This commit is contained in:
parent
84472fbcb9
commit
b7ca0aaf14
|
@ -122,7 +122,10 @@ QtObject:
|
|||
read = getEnsManager
|
||||
|
||||
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
|
||||
quit(QuitSuccess) # quits the app TODO: change this to logout instead when supported
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ ModalPopup {
|
|||
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
anchors.margins: 32
|
||||
anchors.margins: Style.current.xlPadding
|
||||
spacing: Style.current.xlPadding
|
||||
|
||||
Input {
|
||||
|
@ -93,7 +93,7 @@ ModalPopup {
|
|||
Layout.alignment: Qt.AlignHCenter
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
color: Style.current.danger
|
||||
font.pixelSize: 12
|
||||
font.pixelSize: Style.current.tertiaryTextFontSize
|
||||
}
|
||||
|
||||
StyledText {
|
||||
|
@ -103,7 +103,7 @@ ModalPopup {
|
|||
Layout.alignment: Qt.AlignHCenter
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
color: Style.current.secondaryText
|
||||
font.pixelSize: 12
|
||||
font.pixelSize: Style.current.tertiaryTextFontSize
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue