Fix errors preventing the avatar from being shown when uploaded

This commit is contained in:
Joshua Goins
2023-07-26 02:54:29 -04:00
committed by Carl Schwan
parent 4f32a168cd
commit 807a9ee779

View File

@@ -51,11 +51,10 @@ Kirigami.ScrollablePage {
fileDialog = openFileDialog.createObject(QQC2.ApplicationWindow.Overlay)
fileDialog.chosen.connect(function(receivedSource) {
mouseArea.fileDialog = null;
if (!receivedSource) {
return;
}
parent.source = receivedSource;
avatar.source = receivedSource;
});
fileDialog.onRejected.connect(function() {
mouseArea.fileDialog = null;