From 8cf76cf7c27ee5c2cbfdf644c2518451ce0c3791 Mon Sep 17 00:00:00 2001 From: malinero Date: Sun, 2 Oct 2022 10:24:10 +0200 Subject: [PATCH] Android: hide mining tab --- pages/Advanced.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/Advanced.qml b/pages/Advanced.qml index 6aa8ac46..e41390db 100644 --- a/pages/Advanced.qml +++ b/pages/Advanced.qml @@ -52,6 +52,7 @@ ColumnLayout { active: state == "Mining" text: qsTr("Mining") + translationManager.emptyString onSelected: state = "Mining" + visible: !isAndroid } MoneroComponents.NavbarItem { active: state == "Prove" @@ -81,7 +82,7 @@ ColumnLayout { Layout.fillWidth: true Layout.preferredHeight: panelHeight color: "transparent" - state: "Mining" + state: isAndroid ? "Prove" : "Mining" onCurrentViewChanged: { if (previousView) { @@ -120,7 +121,7 @@ ColumnLayout { StackView { id: stackView - initialItem: stateView.miningView + initialItem: isAndroid ? stateView.prooveView : stateView.miningView anchors.fill: parent clip: false // otherwise animation will affect left panel