From 6f11ee972aff888f9b8ebd4074931990d23655e1 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Thu, 18 Feb 2021 15:24:07 -0400 Subject: [PATCH] fix: remove defaultAppSettings completely --- .../Profile/Sections/NotificationsContainer.qml | 8 ++++---- ui/main.qml | 9 --------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/ui/app/AppLayouts/Profile/Sections/NotificationsContainer.qml b/ui/app/AppLayouts/Profile/Sections/NotificationsContainer.qml index aa923fa989..bc82501044 100644 --- a/ui/app/AppLayouts/Profile/Sections/NotificationsContainer.qml +++ b/ui/app/AppLayouts/Profile/Sections/NotificationsContainer.qml @@ -345,10 +345,10 @@ ScrollView { parent.font.underline = false } onClicked: { - appSettings.notificationSetting = defaultAppSettings.notificationSetting - appSettings.notificationSoundsEnabled = defaultAppSettings.notificationSoundsEnabled - appSettings.notificationMessagePreviewSetting = defaultAppSettings.notificationMessagePreviewSetting - appSettings.allowNotificationsFromNonContacts = defaultAppSettings.allowNotificationsFromNonContacts + appSettings.notificationSetting = Constants.notifyAllMessages + appSettings.notificationSoundsEnabled = true + appSettings.notificationMessagePreviewSetting = Constants.notificationPreviewNameAndMessage + appSettings.allowNotificationsFromNonContacts = false } } } diff --git a/ui/main.qml b/ui/main.qml index f239517875..5a51091110 100644 --- a/ui/main.qml +++ b/ui/main.qml @@ -69,15 +69,6 @@ ApplicationWindow { signal navigateTo(string path) - Settings { - id: defaultAppSettings - property int notificationSetting: Constants.notifyAllMessages - property bool notificationSoundsEnabled: true - property int notificationMessagePreviewSetting: Constants.notificationPreviewNameAndMessage - property bool allowNotificationsFromNonContacts: false - } - - property bool currentlyHasANotification: false onActiveChanged: {