From a16592c61f948dce33d0093a71787d636f43817a Mon Sep 17 00:00:00 2001 From: Michal Iskierko Date: Wed, 6 Apr 2022 11:37:21 +0200 Subject: [PATCH] fix(desktop/profile): Upload only accepted image in OnboardingStore Fix #5238 --- ui/app/AppLayouts/Onboarding/popups/UploadProfilePicModal.qml | 3 --- ui/app/AppLayouts/Onboarding/views/InsertDetailsView.qml | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/app/AppLayouts/Onboarding/popups/UploadProfilePicModal.qml b/ui/app/AppLayouts/Onboarding/popups/UploadProfilePicModal.qml index 61a88a81da..26a725678b 100644 --- a/ui/app/AppLayouts/Onboarding/popups/UploadProfilePicModal.qml +++ b/ui/app/AppLayouts/Onboarding/popups/UploadProfilePicModal.qml @@ -10,8 +10,6 @@ import shared 1.0 import shared.panels 1.0 import shared.popups 1.0 -import "../stores" - StatusModal { id: popup height: 510 @@ -59,7 +57,6 @@ StatusModal { ratio: "1:1" onCropFinished: { popup.selectedImage = selectedImage - OnboardingStore.uploadImage(selectedImage, aX, aY, bX, bY); } } } diff --git a/ui/app/AppLayouts/Onboarding/views/InsertDetailsView.qml b/ui/app/AppLayouts/Onboarding/views/InsertDetailsView.qml index 3ea3f05b11..1e79c6a7b5 100644 --- a/ui/app/AppLayouts/Onboarding/views/InsertDetailsView.qml +++ b/ui/app/AppLayouts/Onboarding/views/InsertDetailsView.qml @@ -181,6 +181,7 @@ Item { anchors.centerIn: parent onAccepted: { userImage.image.source = uploadProfilePicPopup.selectedImage + OnboardingStore.uploadImage(selectedImage, aX, aY, bX, bY); } } }