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