Donate to Monero feature

This commit is contained in:
dsc 2020-07-08 22:46:38 +02:00
parent b7b1221221
commit b22fb24e47

View file

@ -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");
}
}
}
}