mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-16 16:47:24 +00:00
feat(@desktop/wallet): enable wallet by default
This commit is contained in:
parent
8d955265dc
commit
ee3d92c12b
@ -7,7 +7,7 @@ const LSS_KEY_CHAT_SPLIT_VIEW* = "chatSplitView"
|
||||
const LSS_KEY_WALLET_SPLIT_VIEW* = "walletSplitView"
|
||||
const LSS_KEY_PROFILE_SPLIT_VIEW* = "profileSplitView"
|
||||
const LSS_KEY_IS_WALLET_ENABLED* = "isExperimentalWalletEnabled"
|
||||
const DEFAULT_IS_WALLET_ENABLED = false
|
||||
const DEFAULT_IS_WALLET_ENABLED = true
|
||||
const LSS_KEY_IS_COMMUNITY_PERMISSIONS_ENABLED* = "isExperimentalCommunityPermissionsEnabled"
|
||||
const DEFAULT_IS_COMMUNITY_PERMISSIONS_ENABLED = false
|
||||
const LSS_KEY_IS_COMMUNITY_TOKENS_ENABLED* = "isExperimentalCommunityTokensEnabled"
|
||||
|
@ -150,6 +150,7 @@ class SettingsScreen:
|
||||
click_obj_by_name(SidebarComponents.WALLET_OPTION.value)
|
||||
|
||||
def activate_wallet_option(self):
|
||||
if not is_loaded_visible_and_enabled(SidebarComponents.WALLET_OPTION.value):
|
||||
click_obj_by_name(SidebarComponents.ADVANCED_OPTION.value)
|
||||
click_obj_by_name(AdvancedOptionScreen.ACTIVATE_OR_DEACTIVATE_WALLET.value)
|
||||
click_obj_by_name(AdvancedOptionScreen.I_UNDERSTAND_POP_UP.value)
|
||||
|
@ -24,7 +24,6 @@ QtObject {
|
||||
|
||||
readonly property bool isFakeLoadingScreenEnabled: localAppSettings.fakeLoadingScreenEnabled ?? false
|
||||
readonly property QtObject experimentalFeatures: QtObject {
|
||||
readonly property string wallet: "wallet"
|
||||
readonly property string browser: "browser"
|
||||
readonly property string communities: "communities"
|
||||
readonly property string activityCenter: "activityCenter"
|
||||
@ -105,10 +104,7 @@ QtObject {
|
||||
if(!root.advancedModule)
|
||||
return
|
||||
|
||||
if (feature === experimentalFeatures.wallet) {
|
||||
advancedModule.toggleWalletSection()
|
||||
}
|
||||
else if (feature === experimentalFeatures.browser) {
|
||||
if (feature === experimentalFeatures.browser) {
|
||||
advancedModule.toggleBrowserSection()
|
||||
}
|
||||
else if (feature === experimentalFeatures.communities) {
|
||||
|
@ -98,25 +98,6 @@ SettingsContentBase {
|
||||
bottomPadding: Style.current.padding
|
||||
}
|
||||
|
||||
// TODO: replace with StatusQ component
|
||||
StatusSettingsLineButton {
|
||||
id: wallet
|
||||
anchors.leftMargin: 0
|
||||
anchors.rightMargin: 0
|
||||
text: qsTr("Wallet")
|
||||
objectName: "WalletSettingsLineButton"
|
||||
isSwitch: true
|
||||
switchChecked: localAccountSensitiveSettings.isWalletEnabled
|
||||
onClicked: {
|
||||
if (!localAccountSensitiveSettings.isWalletEnabled) {
|
||||
confirmationPopup.experimentalFeature = root.advancedStore.experimentalFeatures.wallet
|
||||
confirmationPopup.open()
|
||||
} else {
|
||||
root.advancedStore.toggleExperimentalFeature(root.advancedStore.experimentalFeatures.wallet)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: replace with StatusQ component
|
||||
StatusSettingsLineButton {
|
||||
anchors.leftMargin: 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user