2024-09-04 16:27:24 +02:00
|
|
|
import QtQuick 2.15
|
2023-02-14 10:20:53 +01:00
|
|
|
import utils 1.0
|
2021-12-08 23:20:43 +02:00
|
|
|
|
|
|
|
QtObject {
|
|
|
|
id: root
|
2022-01-26 11:36:37 +01:00
|
|
|
|
2024-09-04 16:27:24 +02:00
|
|
|
readonly property GifStore gifStore: GifStore {}
|
|
|
|
|
2022-03-08 00:59:38 +02:00
|
|
|
property var profileSectionModuleInst: profileSectionModule
|
|
|
|
property var privacyModule: profileSectionModuleInst.privacyModule
|
2023-02-14 10:20:53 +01:00
|
|
|
property var appSettingsInst: Global.appIsReady && !!appSettings? appSettings : null
|
|
|
|
property var accountSensitiveSettings: Global.appIsReady && !!localAccountSensitiveSettings? localAccountSensitiveSettings : null
|
2022-12-08 16:49:14 +01:00
|
|
|
property real volume: !!appSettingsInst ? appSettingsInst.volume * 0.01 : 0.5
|
2023-03-15 16:35:03 +03:00
|
|
|
|
2022-12-08 16:49:14 +01:00
|
|
|
property bool notificationSoundsEnabled: !!appSettingsInst ? appSettingsInst.notificationSoundsEnabled : true
|
2021-12-08 23:20:43 +02:00
|
|
|
property bool neverAskAboutUnfurlingAgain: !!accountSensitiveSettings ? accountSensitiveSettings.neverAskAboutUnfurlingAgain : false
|
2023-10-18 10:03:32 +01:00
|
|
|
property bool gifUnfurlingEnabled: !!accountSensitiveSettings ? accountSensitiveSettings.gifUnfurlingEnabled : false
|
2021-12-08 23:20:43 +02:00
|
|
|
|
2024-10-04 12:04:59 +02:00
|
|
|
required property CurrenciesStore currencyStore
|
2023-06-29 14:35:18 -03:00
|
|
|
|
2021-12-08 23:20:43 +02:00
|
|
|
function setNeverAskAboutUnfurlingAgain(value) {
|
|
|
|
localAccountSensitiveSettings.neverAskAboutUnfurlingAgain = value;
|
|
|
|
}
|
|
|
|
|
2022-07-20 14:34:44 +02:00
|
|
|
function getPasswordStrengthScore(password) {
|
|
|
|
return root.privacyModule.getPasswordStrengthScore(password);
|
2022-03-08 00:59:38 +02:00
|
|
|
}
|
2021-12-08 23:20:43 +02:00
|
|
|
}
|