fix: remove defaultAppSettings completely
This commit is contained in:
parent
6207c8af53
commit
6f11ee972a
|
@ -345,10 +345,10 @@ ScrollView {
|
||||||
parent.font.underline = false
|
parent.font.underline = false
|
||||||
}
|
}
|
||||||
onClicked: {
|
onClicked: {
|
||||||
appSettings.notificationSetting = defaultAppSettings.notificationSetting
|
appSettings.notificationSetting = Constants.notifyAllMessages
|
||||||
appSettings.notificationSoundsEnabled = defaultAppSettings.notificationSoundsEnabled
|
appSettings.notificationSoundsEnabled = true
|
||||||
appSettings.notificationMessagePreviewSetting = defaultAppSettings.notificationMessagePreviewSetting
|
appSettings.notificationMessagePreviewSetting = Constants.notificationPreviewNameAndMessage
|
||||||
appSettings.allowNotificationsFromNonContacts = defaultAppSettings.allowNotificationsFromNonContacts
|
appSettings.allowNotificationsFromNonContacts = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,15 +69,6 @@ ApplicationWindow {
|
||||||
|
|
||||||
signal navigateTo(string path)
|
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
|
property bool currentlyHasANotification: false
|
||||||
|
|
||||||
onActiveChanged: {
|
onActiveChanged: {
|
||||||
|
|
Loading…
Reference in New Issue