diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2021-03-30 14:06:30 -0400 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2021-03-30 14:06:30 -0400 |
| commit | a17b88d80ad864296e87b841a21d0786a7d86ec3 (patch) | |
| tree | 4ab66fc86b3240b24973fb72934c5f40acf5f2e7 /LeftPanel.qml | |
| parent | 1ee06fb78c2a89e229161fdb94360db2ee6f4d4c (diff) | |
| parent | 7c881d01006bce99e832c7012a323a522080336f (diff) | |
| download | monzero-gui-a17b88d80ad864296e87b841a21d0786a7d86ec3.tar.gz monzero-gui-a17b88d80ad864296e87b841a21d0786a7d86ec3.tar.xz monzero-gui-a17b88d80ad864296e87b841a21d0786a7d86ec3.zip | |
Merge pull request #3361
7c881d0 LeftPanel: drop Advanced submenu items, use NavBar instead (xiphon)
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 |
