diff options
| author | xiphon <xiphon@protonmail.com> | 2021-03-20 09:12:15 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2021-03-20 09:20:09 +0000 |
| commit | 7c881d01006bce99e832c7012a323a522080336f (patch) | |
| tree | 75ffdb29522a01d59194219401fb02a142db3f34 /LeftPanel.qml | |
| parent | 34df4e74d4c75f53d0a05ad9e75cf494e9f7134a (diff) | |
| download | monzero-gui-7c881d01006bce99e832c7012a323a522080336f.tar.gz monzero-gui-7c881d01006bce99e832c7012a323a522080336f.tar.xz monzero-gui-7c881d01006bce99e832c7012a323a522080336f.zip | |
LeftPanel: drop Advanced submenu items, use NavBar instead
Diffstat (limited to 'LeftPanel.qml')
| -rw-r--r-- | LeftPanel.qml | 102 |
1 files changed, 2 insertions, 100 deletions
diff --git a/LeftPanel.qml b/LeftPanel.qml index 83dbce1f..450662d0 100644 --- a/LeftPanel.qml +++ b/LeftPanel.qml @@ -58,12 +58,9 @@ Rectangle { signal historyClicked() signal transferClicked() signal receiveClicked() - signal txkeyClicked() - signal sharedringdbClicked() + signal advancedClicked() signal settingsClicked() signal addressBookClicked() - signal miningClicked() - signal signClicked() signal accountClicked() function selectItem(pos) { @@ -72,10 +69,6 @@ Rectangle { else if(pos === "Transfer") menuColumn.previousButton = transferButton else if(pos === "Receive") menuColumn.previousButton = receiveButton else if(pos === "AddressBook") menuColumn.previousButton = addressBookButton - else if(pos === "Mining") menuColumn.previousButton = miningButton - else if(pos === "TxKey") menuColumn.previousButton = txkeyButton - else if(pos === "SharedRingDB") menuColumn.previousButton = sharedringdbButton - else if(pos === "Sign") menuColumn.previousButton = signButton else if(pos === "Settings") menuColumn.previousButton = settingsButton else if(pos === "Advanced") menuColumn.previousButton = advancedButton else if(pos === "Account") menuColumn.previousButton = accountButton @@ -480,6 +473,7 @@ Rectangle { onClicked: { parent.previousButton.checked = false parent.previousButton = advancedButton + panel.advancedClicked() } } @@ -490,98 +484,6 @@ Rectangle { anchors.leftMargin: 20 } - // ------------- Mining tab --------------- - MoneroComponents.MenuButton { - id: miningButton - visible: !isAndroid && !isIOS && appWindow.walletMode >= 2 - anchors.left: parent.left - anchors.right: parent.right - text: qsTr("Mining") + translationManager.emptyString - symbol: qsTr("M") + translationManager.emptyString - under: advancedButton - onClicked: { - parent.previousButton.checked = false - parent.previousButton = miningButton - panel.miningClicked() - } - } - - MoneroComponents.MenuButtonDivider { - visible: miningButton.present && appWindow.walletMode >= 2 - anchors.left: parent.left - anchors.right: parent.right - anchors.leftMargin: 20 - } - - // ------------- TxKey tab --------------- - MoneroComponents.MenuButton { - id: txkeyButton - visible: appWindow.walletMode >= 2 - anchors.left: parent.left - anchors.right: parent.right - text: qsTr("Prove/check") + translationManager.emptyString - symbol: qsTr("K") + translationManager.emptyString - under: advancedButton - onClicked: { - parent.previousButton.checked = false - parent.previousButton = txkeyButton - panel.txkeyClicked() - } - } - - MoneroComponents.MenuButtonDivider { - visible: txkeyButton.present && appWindow.walletMode >= 2 - anchors.left: parent.left - anchors.right: parent.right - anchors.leftMargin: 20 - } - - // ------------- Shared RingDB tab --------------- - MoneroComponents.MenuButton { - id: sharedringdbButton - visible: appWindow.walletMode >= 2 - anchors.left: parent.left - anchors.right: parent.right - text: qsTr("Shared RingDB") + translationManager.emptyString - symbol: qsTr("G") + translationManager.emptyString - under: advancedButton - onClicked: { - parent.previousButton.checked = false - parent.previousButton = sharedringdbButton - panel.sharedringdbClicked() - } - } - - MoneroComponents.MenuButtonDivider { - visible: sharedringdbButton.present && appWindow.walletMode >= 2 - anchors.left: parent.left - anchors.right: parent.right - anchors.leftMargin: 20 - } - - // ------------- Sign/verify tab --------------- - MoneroComponents.MenuButton { - id: signButton - visible: appWindow.walletMode >= 2 - anchors.left: parent.left - anchors.right: parent.right - text: qsTr("Sign/verify") + translationManager.emptyString - symbol: qsTr("I") + translationManager.emptyString - under: advancedButton - onClicked: { - parent.previousButton.checked = false - parent.previousButton = signButton - panel.signClicked() - } - } - - MoneroComponents.MenuButtonDivider { - visible: signButton.present && appWindow.walletMode >= 2 - anchors.left: parent.left - anchors.right: parent.right - anchors.leftMargin: 20 - } - // ------------- Settings tab --------------- MoneroComponents.MenuButton { id: settingsButton |
