mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-22 12:29:37 +00:00
parent
86688a7e59
commit
4958e4d941
@ -248,7 +248,17 @@ ScrollView {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
StatusSettingsLineButton {
|
||||
text: qsTr("Stickers/ENS on ropsten")
|
||||
visible: profileModel.network.current === Constants.networkRopsten
|
||||
isSwitch: true
|
||||
switchChecked: appSettings.stickersEnsRopsten
|
||||
onClicked: {
|
||||
appSettings.stickersEnsRopsten = !appSettings.stickersEnsRopsten
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
NetworksModal {
|
||||
|
@ -271,7 +271,7 @@ Item {
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.bottomMargin: Style.current.padding
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
enabled: profileModel.network.current === Constants.networkMainnet // Comment this to use on testnet
|
||||
enabled: networkGuarded
|
||||
//% "Start"
|
||||
text: enabled ?
|
||||
qsTrId("start") :
|
||||
|
@ -26,8 +26,8 @@ Item {
|
||||
signal goToWelcome();
|
||||
signal goToList();
|
||||
|
||||
function goToStart(){ /* Comment this to use on testnet */
|
||||
if(profileModel.ens.rowCount() > 0 && profileModel.network.current === "mainnet_rpc"){
|
||||
function goToStart(){
|
||||
if(profileModel.ens.rowCount() > 0 && networkGuarded){
|
||||
goToList();
|
||||
} else {
|
||||
goToWelcome();
|
||||
|
@ -26,6 +26,7 @@ StatusAppLayout {
|
||||
property alias appSettings: appSettings
|
||||
|
||||
property bool profilePopupOpened: false
|
||||
property bool networkGuarded: profileModel.network.current === Constants.networkMainnet || (profileModel.network.current === Constants.networkRopsten && appSettings.stickersEnsRopsten)
|
||||
|
||||
signal settingsLoaded()
|
||||
|
||||
@ -454,6 +455,9 @@ StatusAppLayout {
|
||||
property bool devToolsEnabled: false
|
||||
property bool pdfViewerEnabled: true
|
||||
property bool compatibilityMode: true
|
||||
|
||||
// Ropsten settings
|
||||
property bool stickersEnsRopsten: false
|
||||
}
|
||||
|
||||
ErrorSound {
|
||||
|
@ -1103,7 +1103,7 @@ Rectangle {
|
||||
anchors.leftMargin: 2
|
||||
anchors.bottom: parent.bottom
|
||||
icon.name: "stickers_icon"
|
||||
visible: !isEdit && profileModel.network.current === Constants.networkMainnet && emojiBtn.visible
|
||||
visible: !isEdit && networkGuarded && emojiBtn.visible
|
||||
width: visible ? 32 : 0
|
||||
type: "secondary"
|
||||
onClicked: togglePopup(stickersPopup, stickersBtn)
|
||||
|
Loading…
x
Reference in New Issue
Block a user