Don't set default donation amount

This commit is contained in:
tobtoht 2022-02-24 00:44:13 +01:00
parent c10a6a3829
commit 558ed2d7ac
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C
2 changed files with 1 additions and 6 deletions

View file

@ -910,11 +910,7 @@ void MainWindow::closeEvent(QCloseEvent *event) {
} }
void MainWindow::donateButtonClicked() { void MainWindow::donateButtonClicked() {
double donation = appData()->prices.convert("EUR", "XMR", constants::donationAmount); m_sendWidget->fill(constants::donationAddress, "Donation to the Feather development team");
if (donation <= 0)
donation = 0.1337;
m_sendWidget->fill(constants::donationAddress, "Donation to the Feather development team", donation);
ui->tabWidget->setCurrentIndex(Tabs::SEND); ui->tabWidget->setCurrentIndex(Tabs::SEND);
} }

View file

@ -23,7 +23,6 @@ namespace constants
// donation constants // donation constants
const QString donationAddress = "47ntfT2Z5384zku39pTM6hGcnLnvpRYW2Azm87GiAAH2bcTidtq278TL6HmwyL8yjMeERqGEBs3cqC8vvHPJd1cWQrGC65f"; const QString donationAddress = "47ntfT2Z5384zku39pTM6hGcnLnvpRYW2Azm87GiAAH2bcTidtq278TL6HmwyL8yjMeERqGEBs3cqC8vvHPJd1cWQrGC65f";
const int donationAmount = 25; // euro
const int donationBoundary = 25; const int donationBoundary = 25;
// websocket constants // websocket constants