From: tobtoht Date: Thu, 17 Jul 2025 09:11:14 +0000 (+0200) Subject: main: remove donations X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=5f239d80b4714587b285ff2bf509ed073d62a5e6;p=gamesguru%2Ffeather.git main: remove donations --- diff --git a/CMakeLists.txt b/CMakeLists.txt index fb53063e..31a7872f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,6 @@ option(TOR_DIR "Directory containing Tor binaries to embed inside Feather" OFF) option(CHECK_UPDATES "Enable checking for application updates" OFF) option(PLATFORM_INSTALLER "Built-in updater fetches installer (windows-only)" OFF) option(USE_DEVICE_TREZOR "Trezor support compilation" ON) -option(DONATE_BEG "Prompt donation window every once in a while" OFF) option(WITH_SCANNER "Enable webcam QR scanner" ON) option(STACK_TRACE "Dump stack trace on crash (Linux only)" OFF) diff --git a/README.md b/README.md index f8969507..ea3ef180 100644 --- a/README.md +++ b/README.md @@ -53,14 +53,6 @@ For information on how Feather is maintained, see: [MAINTENANCE.md](https://gith To report a security vulnerability, see: [SECURITY.md](https://github.com/feather-wallet/feather/blob/master/SECURITY.md) -## Support - -Feather is funded entirely through donations. We don't take a cut from transaction fees and make no money from exchange integrations. - -Donations help pay for hosting, build servers, domain names, e-mail and other recurring costs. Any amount helps. - -`47ntfT2Z5384zku39pTM6hGcnLnvpRYW2Azm87GiAAH2bcTidtq278TL6HmwyL8yjMeERqGEBs3cqC8vvHPJd1cWQrGC65f` - ## License Feather is free and open-source software, [licensed under BSD-3](https://raw.githubusercontent.com/feather-wallet/feather/master/LICENSE). diff --git a/contrib/guix/libexec/build.sh b/contrib/guix/libexec/build.sh index 7a939c72..7383d5c7 100755 --- a/contrib/guix/libexec/build.sh +++ b/contrib/guix/libexec/build.sh @@ -289,7 +289,7 @@ export PATH="${BASEPREFIX}/${HOST}/native/bin:${PATH}" # Set appropriate CMake options for build type - CMAKEVARS="-DWITH_SCANNER=On -DCHECK_UPDATES=On -DSELF_CONTAINED=On -DDONATE_BEG=On -DFEATHER_TARGET_TRIPLET=${HOST} -DWITH_PLUGIN_REDDIT=Off" + CMAKEVARS="-DWITH_SCANNER=On -DCHECK_UPDATES=On -DSELF_CONTAINED=On -DFEATHER_TARGET_TRIPLET=${HOST} -DWITH_PLUGIN_REDDIT=Off" if [[ -n "${TAG}" ]]; then CMAKEVARS+=" -DOFFICIAL_BUILD=On" diff --git a/external/feather-docs b/external/feather-docs index 39397f45..08d68bf5 160000 --- a/external/feather-docs +++ b/external/feather-docs @@ -1 +1 @@ -Subproject commit 39397f45347131ab87a4ae322b949fd00bd0fe80 +Subproject commit 08d68bf5c49a7fe82733106679055923d18d811b diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 656e24e8..6a2d6b80 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -120,10 +120,6 @@ MainWindow::MainWindow(WindowManager *windowManager, Wallet *wallet, QWidget *pa connect(&appData()->prices, &Prices::fiatPricesUpdated, this, &MainWindow::updateBalance); connect(&appData()->prices, &Prices::cryptoPricesUpdated, this, &MainWindow::updateBalance); -#ifdef DONATE_BEG - this->donationNag(); -#endif - connect(m_windowManager->eventFilter, &EventFilter::userActivity, this, &MainWindow::userActivity); connect(&m_checkUserActivity, &QTimer::timeout, this, &MainWindow::checkUserActivity); m_checkUserActivity.setInterval(5000); @@ -407,7 +403,6 @@ void MainWindow::initMenu() { #endif connect(ui->actionOfficialWebsite, &QAction::triggered, [this](){Utils::externalLinkWarning(this, "https://featherwallet.org");}); - connect(ui->actionDonate_to_Feather, &QAction::triggered, this, &MainWindow::donateButtonClicked); connect(ui->actionDocumentation, &QAction::triggered, this, &MainWindow::onShowDocumentation); connect(ui->actionReport_bug, &QAction::triggered, this, &MainWindow::onReportBug); connect(ui->actionShow_debug_info, &QAction::triggered, this, &MainWindow::showDebugInfo); @@ -514,10 +509,6 @@ void MainWindow::initWalletContext() { connect(m_wallet, &Wallet::deviceButtonRequest, this, &MainWindow::onDeviceButtonRequest); connect(m_wallet, &Wallet::deviceButtonPressed, this, &MainWindow::onDeviceButtonPressed); connect(m_wallet, &Wallet::deviceError, this, &MainWindow::onDeviceError); - - connect(m_wallet, &Wallet::donationSent, this, []{ - conf()->set(Config::donateBeg, -1); - }); connect(m_wallet, &Wallet::multiBroadcast, this, &MainWindow::onMultiBroadcast); } @@ -1288,11 +1279,6 @@ void MainWindow::changeEvent(QEvent* event) } } -void MainWindow::donateButtonClicked() { - m_sendWidget->fill(constants::donationAddress, constants::donationDescription); - ui->tabWidget->setCurrentIndex(this->findTab("Send")); -} - void MainWindow::showHistoryTab() { this->raise(); ui->tabWidget->setCurrentIndex(this->findTab("History")); @@ -1776,32 +1762,6 @@ void MainWindow::updateTitle() { this->setWindowTitle(title); } -void MainWindow::donationNag() { - if (m_wallet->nettype() != NetworkType::Type::MAINNET) - return; - - if (m_wallet->viewOnly()) - return; - - if (m_wallet->balanceAll() == 0) - return; - - auto donationCounter = conf()->get(Config::donateBeg).toInt(); - if (donationCounter == -1) - return; - - donationCounter++; - if (donationCounter % constants::donationBoundary == 0) { - auto msg = "Feather development is funded entirely through donations.\n\nPlease consider supporting " - "the project. Donate any amount to remove this reminder."; - int ret = QMessageBox::information(this, "Donate to Feather", msg, QMessageBox::Yes, QMessageBox::No); - if (ret == QMessageBox::Yes) { - this->donateButtonClicked(); - } - } - conf()->set(Config::donateBeg, donationCounter); -} - void MainWindow::addToRecentlyOpened(QString keysFile) { auto recent = conf()->get(Config::recentlyOpenedWallets).toList(); diff --git a/src/MainWindow.h b/src/MainWindow.h index 666c0a14..c44270d3 100644 --- a/src/MainWindow.h +++ b/src/MainWindow.h @@ -152,7 +152,6 @@ private slots: void showAddressChecker(); void showURDialog(); - void donateButtonClicked(); void payToMany(); void showHistoryTab(); void skinChanged(const QString &skinName); diff --git a/src/MainWindow.ui b/src/MainWindow.ui index 753e8503..9a349d08 100644 --- a/src/MainWindow.ui +++ b/src/MainWindow.ui @@ -595,8 +595,6 @@ - - diff --git a/src/SendWidget.cpp b/src/SendWidget.cpp index f60229b2..e0ce2dea 100644 --- a/src/SendWidget.cpp +++ b/src/SendWidget.cpp @@ -94,11 +94,6 @@ void SendWidget::addressEdited() { } ui->btn_openAlias->setVisible(ui->lineAddress->isOpenAlias()); - - // Clear donation description if address no longer matches - if (ui->lineDescription->text() == constants::donationDescription && ui->lineAddress->text() != constants::donationAddress) { - ui->lineDescription->clear(); - } } void SendWidget::amountEdited(const QString &text) { diff --git a/src/constants.h b/src/constants.h index abbbffff..567cc143 100644 --- a/src/constants.h +++ b/src/constants.h @@ -19,11 +19,6 @@ namespace constants const quint64 kdfRounds = 1; const QString seedLanguage = "English"; // todo: move me - - // donation constants - const QString donationAddress = "47ntfT2Z5384zku39pTM6hGcnLnvpRYW2Azm87GiAAH2bcTidtq278TL6HmwyL8yjMeERqGEBs3cqC8vvHPJd1cWQrGC65f"; - const QString donationDescription = "Donation to the Feather development team"; - const int donationBoundary = 25; } #endif //FEATHER_CONSTANTS_H diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index fb693f0c..c26e40d9 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -957,12 +957,6 @@ void Wallet::onTransactionCreated(Monero::PendingTransaction *mtx, const QVector PendingTransaction *tx = new PendingTransaction(mtx, this); - for (auto &addr : address) { - if (addr == constants::donationAddress) { - this->donationSending = true; - } - } - // tx created, but not sent yet. ask user to verify first. emit transactionCreated(tx, address); } @@ -1014,12 +1008,6 @@ void Wallet::onTransactionCommitted(bool success, PendingTransaction *tx, const // Let MainWindow handle this emit multiBroadcast(txHexMap); } - - // this tx was a donation to Feather, stop our nagging - if (this->donationSending) { - this->donationSending = false; - emit donationSent(); - } } void Wallet::disposeTransaction(PendingTransaction *t) { diff --git a/src/libwalletqt/Wallet.h b/src/libwalletqt/Wallet.h index 2a658f14..20d21af4 100644 --- a/src/libwalletqt/Wallet.h +++ b/src/libwalletqt/Wallet.h @@ -463,7 +463,6 @@ signals: void transactionCreated(PendingTransaction *tx, const QVector &address); - void donationSent(); void walletRefreshed(); void initiateTransaction(); @@ -525,7 +524,6 @@ private: FutureScheduler m_scheduler; bool m_useSSL; - bool donationSending = false; bool m_newWallet = false; bool m_forceKeyImageSync = false;