From b22fb24e478da0c645eb9dab405d71c0b3a61e02 Mon Sep 17 00:00:00 2001 From: dsc Date: Wed, 8 Jul 2020 22:46:38 +0200 Subject: [PATCH] Donate to Monero feature --- pages/settings/SettingsInfo.qml | 47 ++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 18 deletions(-) diff --git a/pages/settings/SettingsInfo.qml b/pages/settings/SettingsInfo.qml index 7fbb45e6..703e4b6b 100644 --- a/pages/settings/SettingsInfo.qml +++ b/pages/settings/SettingsInfo.qml @@ -381,27 +381,38 @@ Rectangle { } } - // Copy info to clipboard - MoneroComponents.StandardButton { - small: true - text: qsTr("Copy to clipboard") + translationManager.emptyString - onClicked: { - var data = ""; - data += "GUI version: " + Version.GUI_VERSION + " (Qt " + qtRuntimeVersion + ")"; - data += "\nEmbedded Monero version: " + Version.GUI_MONERO_VERSION; - data += "\nWallet path: " + walletLocation.walletPath; + RowLayout { + spacing: 20; - data += "\nWallet creation height: "; - if(currentWallet) - data += currentWallet.walletCreationHeight; + MoneroComponents.StandardButton { + small: true + text: qsTr("Copy to clipboard") + translationManager.emptyString + onClicked: { + var data = ""; + data += "GUI version: " + Version.GUI_VERSION + " (Qt " + qtRuntimeVersion + ")"; + data += "\nEmbedded Monero version: " + Version.GUI_MONERO_VERSION; + data += "\nWallet path: " + walletLocation.walletPath; - data += "\nWallet log path: " + walletLogPath; - data += "\nWallet mode: " + walletModeString; - data += "\nGraphics: " + isOpenGL ? "OpenGL" : "Low graphics mode"; + data += "\nWallet creation height: "; + if(currentWallet) + data += currentWallet.walletCreationHeight; - console.log("Copied to clipboard"); - clipboard.setText(data); - appWindow.showStatusMessage(qsTr("Copied to clipboard"), 3); + data += "\nWallet log path: " + walletLogPath; + data += "\nWallet mode: " + walletModeString; + data += "\nGraphics: " + isOpenGL ? "OpenGL" : "Low graphics mode"; + + console.log("Copied to clipboard"); + clipboard.setText(data); + appWindow.showStatusMessage(qsTr("Copied to clipboard"), 3); + } + } + + MoneroComponents.StandardButton { + small: true + text: qsTr("Donate to Monero") + translationManager.emptyString + onClicked: { + middlePanel.sendTo("888tNkZrPN6JsEgekjMnABU4TBzc2Dt29EPAvkRxbANsAnjyPbb3iQ1YBRk1UXcdRsiKc9dhwMVgN5S9cQUiyoogDavup3H", "", "Donation to Monero Core Team"); + } } } }