From 166118d49cb2f46ed7ef537fa558975b292f7cbc Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Mon, 18 Oct 2021 11:03:38 +0200 Subject: [PATCH] fix(@desktop/profile): make profile image work again There is a bug in the store property accessed for the profile image. This commit corrects it. It also ensures that the image source used in the `ImageLoader` component is correct. --- ui/app/AppLayouts/Profile/views/MyProfileView.qml | 2 +- ui/shared/panels/ImageLoader.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app/AppLayouts/Profile/views/MyProfileView.qml b/ui/app/AppLayouts/Profile/views/MyProfileView.qml index af91fe44aa..da6d331346 100644 --- a/ui/app/AppLayouts/Profile/views/MyProfileView.qml +++ b/ui/app/AppLayouts/Profile/views/MyProfileView.qml @@ -31,7 +31,7 @@ Item { id: changeProfileModalComponent ChangeProfilePicModal { largeImage: store.profileLargeImage - hasIdentityImage: store.hasIdentityImage + hasIdentityImage: store.profileHasIdentityImage onCropFinished: { uploadError = store.uploadImage(selectedImage, aX, aY, bX, bY) } diff --git a/ui/shared/panels/ImageLoader.qml b/ui/shared/panels/ImageLoader.qml index 756e41a810..e3f4167d02 100644 --- a/ui/shared/panels/ImageLoader.qml +++ b/ui/shared/panels/ImageLoader.qml @@ -89,7 +89,7 @@ Rectangle { Component { id: reload SVGImage { - source: "../app/img/reload.svg" + source: Style.svg("reload") mipmap: false width: 15.5 height: 19.5