parent
a46f3b0864
commit
9acf8d8709
|
@ -96,7 +96,6 @@ SplitView {
|
|||
usersModel: fakeUsersModel
|
||||
|
||||
sharedStore: SharedStores.RootStore {
|
||||
property bool isWalletEnabled: true
|
||||
property bool gifUnfurlingEnabled: true
|
||||
|
||||
property var gifStore: SharedStores.GifStore {
|
||||
|
|
|
@ -29,7 +29,6 @@ Item {
|
|||
usersModel: ListModel {}
|
||||
|
||||
sharedStore: SharedStores.RootStore {
|
||||
property bool isWalletEnabled: true
|
||||
property bool gifUnfurlingEnabled: true
|
||||
|
||||
property var gifStore: SharedStores.GifStore {
|
||||
|
|
|
@ -631,6 +631,8 @@ Item {
|
|||
store: appMain.rootChatStore
|
||||
transactionStore: appMain.transactionStore
|
||||
walletAssetsStore: appMain.walletAssetsStore
|
||||
|
||||
isWalletEnabled: appMain.rootStore.profileSectionStore.profileStore.isWalletEnabled
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ import shared 1.0
|
|||
import shared.panels 1.0
|
||||
import shared.popups 1.0
|
||||
import shared.status 1.0
|
||||
import shared.stores 1.0 as SharedStores
|
||||
import shared.popups.send 1.0
|
||||
import shared.stores.send 1.0
|
||||
|
||||
|
@ -30,6 +29,7 @@ Item {
|
|||
required property WalletAssetsStore walletAssetsStore
|
||||
property string packId
|
||||
property bool marketVisible
|
||||
property bool isWalletEnabled
|
||||
|
||||
signal backClicked
|
||||
signal uninstallClicked(string packId)
|
||||
|
@ -81,7 +81,7 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
readonly property bool walletEnabled: SharedStores.RootStore.isWalletEnabled
|
||||
readonly property bool walletEnabled: root.isWalletEnabled
|
||||
onWalletEnabledChanged: {
|
||||
update()
|
||||
}
|
||||
|
|
|
@ -22,6 +22,8 @@ Popup {
|
|||
required property TransactionStore transactionStore
|
||||
required property WalletAssetsStore walletAssetsStore
|
||||
|
||||
property alias isWalletEnabled: stickerMarket.isWalletEnabled
|
||||
|
||||
signal stickerSelected(string hashId, string packId, string url)
|
||||
|
||||
QtObject {
|
||||
|
@ -95,6 +97,7 @@ Popup {
|
|||
|
||||
StatusStickerMarket {
|
||||
id: stickerMarket
|
||||
|
||||
visible: false
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
|
|
@ -14,7 +14,6 @@ QtObject {
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue