Android: hide mining tab

This commit is contained in:
malinero 2022-10-02 10:24:10 +02:00
parent 6441d99279
commit 8cf76cf7c2

View file

@ -52,6 +52,7 @@ ColumnLayout {
active: state == "Mining" active: state == "Mining"
text: qsTr("Mining") + translationManager.emptyString text: qsTr("Mining") + translationManager.emptyString
onSelected: state = "Mining" onSelected: state = "Mining"
visible: !isAndroid
} }
MoneroComponents.NavbarItem { MoneroComponents.NavbarItem {
active: state == "Prove" active: state == "Prove"
@ -81,7 +82,7 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: panelHeight Layout.preferredHeight: panelHeight
color: "transparent" color: "transparent"
state: "Mining" state: isAndroid ? "Prove" : "Mining"
onCurrentViewChanged: { onCurrentViewChanged: {
if (previousView) { if (previousView) {
@ -120,7 +121,7 @@ ColumnLayout {
StackView { StackView {
id: stackView id: stackView
initialItem: stateView.miningView initialItem: isAndroid ? stateView.prooveView : stateView.miningView
anchors.fill: parent anchors.fill: parent
clip: false // otherwise animation will affect left panel clip: false // otherwise animation will affect left panel