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