mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-03 10:14:04 +00:00
39 lines
1.7 KiB
QML
39 lines
1.7 KiB
QML
pragma Singleton
|
|
|
|
import QtQuick 2.15
|
|
import utils 1.0
|
|
|
|
QtObject {
|
|
id: root
|
|
|
|
readonly property GifStore gifStore: GifStore {}
|
|
|
|
property var profileSectionModuleInst: profileSectionModule
|
|
property var privacyModule: profileSectionModuleInst.privacyModule
|
|
property var userProfileInst: !!Global.userProfile? Global.userProfile : null
|
|
property var appSettingsInst: Global.appIsReady && !!appSettings? appSettings : null
|
|
property var accountSensitiveSettings: Global.appIsReady && !!localAccountSensitiveSettings? localAccountSensitiveSettings : null
|
|
property real volume: !!appSettingsInst ? appSettingsInst.volume * 0.01 : 0.5
|
|
property bool isWalletEnabled: Global.appIsReady? mainModule.sectionsModel.getItemEnabledBySectionType(Constants.appSection.wallet) : true
|
|
|
|
property bool notificationSoundsEnabled: !!appSettingsInst ? appSettingsInst.notificationSoundsEnabled : true
|
|
property bool neverAskAboutUnfurlingAgain: !!accountSensitiveSettings ? accountSensitiveSettings.neverAskAboutUnfurlingAgain : false
|
|
property bool gifUnfurlingEnabled: !!accountSensitiveSettings ? accountSensitiveSettings.gifUnfurlingEnabled : false
|
|
|
|
property CurrenciesStore currencyStore: CurrenciesStore {}
|
|
|
|
property TokenMarketValuesStore marketValueStore: TokenMarketValuesStore {}
|
|
|
|
function setNeverAskAboutUnfurlingAgain(value) {
|
|
localAccountSensitiveSettings.neverAskAboutUnfurlingAgain = value;
|
|
}
|
|
|
|
function setGifUnfurlingEnabled(value) {
|
|
localAccountSensitiveSettings.gifUnfurlingEnabled = value
|
|
}
|
|
|
|
function getPasswordStrengthScore(password) {
|
|
return root.privacyModule.getPasswordStrengthScore(password);
|
|
}
|
|
}
|