From 95f8a545d948099fdfd630a52d67a734bd20ed67 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Thu, 27 Jan 2022 17:01:13 +0100 Subject: [PATCH] fix(@settings): fix privacy settings toggle fixes #4598 --- ui/app/AppLayouts/Profile/views/PrivacyView.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/app/AppLayouts/Profile/views/PrivacyView.qml b/ui/app/AppLayouts/Profile/views/PrivacyView.qml index dfa47b2239..944f183812 100644 --- a/ui/app/AppLayouts/Profile/views/PrivacyView.qml +++ b/ui/app/AppLayouts/Profile/views/PrivacyView.qml @@ -157,11 +157,11 @@ Item { StatusQControls.StatusSwitch { id: switch1 checked: !localAccountSensitiveSettings.onlyShowContactsProfilePics + onClicked: { + localAccountSensitiveSettings.onlyShowContactsProfilePics = !checked + } } ] - sensor.onClicked: { - switch1.checked = localAccountSensitiveSettings.onlyShowContactsProfilePics = !switch1.checked - } } StatusListItem { @@ -176,11 +176,11 @@ Item { StatusQControls.StatusSwitch { id: switch2 checked: localAccountSensitiveSettings.displayChatImages + onClicked: { + localAccountSensitiveSettings.displayChatImages = checked + } } ] - sensor.onClicked: { - switch2.checked = localAccountSensitiveSettings.displayChatImages = !switch2.checked - } } StatusBaseText {