Fix profile cancel button not restoring avatar
This commit is contained in:
parent
a842981406
commit
50930aec36
|
@ -45,6 +45,6 @@ Item {
|
||||||
opener.file = Qt.binding(() => Qt.resolvedUrl(file))
|
opener.file = Qt.binding(() => Qt.resolvedUrl(file))
|
||||||
}
|
}
|
||||||
onAccepted: { opener.selectedFile = currentFile, opener.file = file }
|
onAccepted: { opener.selectedFile = currentFile, opener.file = file }
|
||||||
onRejected: { selectedFile = null; file = null}
|
onRejected: { selectedFile = ""; file = ""}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -156,6 +156,8 @@ HGridLayout {
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
nameField.field.text = userInfo.displayName
|
nameField.field.text = userInfo.displayName
|
||||||
|
fileDialog.selectedFile = ""
|
||||||
|
fileDialog.file = ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user