fix: remove defaultAppSettings completely

This commit is contained in:
Richard Ramos 2021-02-18 15:24:07 -04:00 committed by Iuri Matias
parent 6207c8af53
commit 6f11ee972a
2 changed files with 4 additions and 13 deletions

View File

@ -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
}
}
}

View File

@ -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: {