Addressed PR feedback
This commit is contained in:
parent
84472fbcb9
commit
b7ca0aaf14
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue