mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-22 19:49:34 +00:00
Android: hide mining tab
This commit is contained in:
parent
6441d99279
commit
8cf76cf7c2
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue