From 5c93d08bc1c283a1e5ffa6cce11a377dc8f366fb Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 27 Oct 2020 15:00:50 +0100 Subject: [PATCH] reset avatar cropper before showing Signed-off-by: Robin Appelman --- apps/settings/js/settings/personalInfo.js | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/settings/js/settings/personalInfo.js b/apps/settings/js/settings/personalInfo.js index 3f1a046bc3..a6055fd7a9 100644 --- a/apps/settings/js/settings/personalInfo.js +++ b/apps/settings/js/settings/personalInfo.js @@ -134,6 +134,7 @@ function avatarResponseHandler (data) { oc_userconfig.avatar.generated = false; updateAvatar(); } else if (data.data === "notsquare") { + cleanCropper(); showAvatarCropper(); } else { $warning.show();