forked from Public/monero-gui
Android: hide mining tab
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user