]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
Don't set default donation amount
authortobtoht <thotbot@protonmail.com>
Wed, 23 Feb 2022 23:44:13 +0000 (00:44 +0100)
committertobtoht <thotbot@protonmail.com>
Wed, 23 Feb 2022 23:44:13 +0000 (00:44 +0100)
src/MainWindow.cpp
src/constants.h

index f351812685bb9094c15b019e2d56098991f231ae..ce48323621d1d45e6396d35ed0eff665ac364eec 100644 (file)
@@ -910,11 +910,7 @@ void MainWindow::closeEvent(QCloseEvent *event) {
 }
 
 void MainWindow::donateButtonClicked() {
-    double donation = appData()->prices.convert("EUR", "XMR", constants::donationAmount);
-    if (donation <= 0)
-        donation = 0.1337;
-
-    m_sendWidget->fill(constants::donationAddress, "Donation to the Feather development team", donation);
+    m_sendWidget->fill(constants::donationAddress, "Donation to the Feather development team");
     ui->tabWidget->setCurrentIndex(Tabs::SEND);
 }
 
index 9b2794b154ea93a7bc412cb7560d652f4d1601c4..140166de33cc1826d126398ca427f0dc09bfc933 100644 (file)
@@ -23,7 +23,6 @@ namespace constants
 
     // donation constants
     const QString donationAddress = "47ntfT2Z5384zku39pTM6hGcnLnvpRYW2Azm87GiAAH2bcTidtq278TL6HmwyL8yjMeERqGEBs3cqC8vvHPJd1cWQrGC65f";
-    const int donationAmount = 25; // euro
     const int donationBoundary = 25;
 
     // websocket constants