From 046e1d107395d13c7acd560f66ebbabd2d531dda Mon Sep 17 00:00:00 2001 From: Boris Melnik Date: Fri, 9 Dec 2022 14:17:34 +0300 Subject: [PATCH] fix(warnings): Avoid flickable manipulations in SettingsPageLayout when dirty toast message isn't active Fixes: #8293 --- ui/app/AppLayouts/Chat/layouts/SettingsPageLayout.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/AppLayouts/Chat/layouts/SettingsPageLayout.qml b/ui/app/AppLayouts/Chat/layouts/SettingsPageLayout.qml index 5203119e3e..c306bd3054 100644 --- a/ui/app/AppLayouts/Chat/layouts/SettingsPageLayout.qml +++ b/ui/app/AppLayouts/Chat/layouts/SettingsPageLayout.qml @@ -95,7 +95,7 @@ Item { bottomMargin: 16 } active: root.dirty - flickable: root.contentItem + flickable: root.dirty ? root.contentItem : null saveChangesButtonEnabled: !!root.contentItem && !!root.contentItem.saveChangesButtonEnabled onResetChangesClicked: root.resetChangesClicked() onSaveChangesClicked: root.saveChangesClicked()