@@ -120,10 +120,6 @@ MainWindow::MainWindow(WindowManager *windowManager, Wallet *wallet, QWidget *pa
120120 connect (&appData ()->prices , &Prices::fiatPricesUpdated, this , &MainWindow::updateBalance);
121121 connect (&appData ()->prices , &Prices::cryptoPricesUpdated, this , &MainWindow::updateBalance);
122122
123- #ifdef DONATE_BEG
124- this ->donationNag ();
125- #endif
126-
127123 connect (m_windowManager->eventFilter , &EventFilter::userActivity, this , &MainWindow::userActivity);
128124 connect (&m_checkUserActivity, &QTimer::timeout, this , &MainWindow::checkUserActivity);
129125 m_checkUserActivity.setInterval (5000 );
@@ -407,7 +403,6 @@ void MainWindow::initMenu() {
407403#endif
408404
409405 connect (ui->actionOfficialWebsite , &QAction::triggered, [this ](){Utils::externalLinkWarning (this , " https://featherwallet.org" );});
410- connect (ui->actionDonate_to_Feather , &QAction::triggered, this , &MainWindow::donateButtonClicked);
411406 connect (ui->actionDocumentation , &QAction::triggered, this , &MainWindow::onShowDocumentation);
412407 connect (ui->actionReport_bug , &QAction::triggered, this , &MainWindow::onReportBug);
413408 connect (ui->actionShow_debug_info , &QAction::triggered, this , &MainWindow::showDebugInfo);
@@ -514,10 +509,6 @@ void MainWindow::initWalletContext() {
514509 connect (m_wallet, &Wallet::deviceButtonRequest, this , &MainWindow::onDeviceButtonRequest);
515510 connect (m_wallet, &Wallet::deviceButtonPressed, this , &MainWindow::onDeviceButtonPressed);
516511 connect (m_wallet, &Wallet::deviceError, this , &MainWindow::onDeviceError);
517-
518- connect (m_wallet, &Wallet::donationSent, this , []{
519- conf ()->set (Config::donateBeg, -1 );
520- });
521512
522513 connect (m_wallet, &Wallet::multiBroadcast, this , &MainWindow::onMultiBroadcast);
523514}
@@ -1288,11 +1279,6 @@ void MainWindow::changeEvent(QEvent* event)
12881279 }
12891280}
12901281
1291- void MainWindow::donateButtonClicked () {
1292- m_sendWidget->fill (constants::donationAddress, constants::donationDescription);
1293- ui->tabWidget ->setCurrentIndex (this ->findTab (" Send" ));
1294- }
1295-
12961282void MainWindow::showHistoryTab () {
12971283 this ->raise ();
12981284 ui->tabWidget ->setCurrentIndex (this ->findTab (" History" ));
@@ -1776,32 +1762,6 @@ void MainWindow::updateTitle() {
17761762 this ->setWindowTitle (title);
17771763}
17781764
1779- void MainWindow::donationNag () {
1780- if (m_wallet->nettype () != NetworkType::Type::MAINNET)
1781- return ;
1782-
1783- if (m_wallet->viewOnly ())
1784- return ;
1785-
1786- if (m_wallet->balanceAll () == 0 )
1787- return ;
1788-
1789- auto donationCounter = conf ()->get (Config::donateBeg).toInt ();
1790- if (donationCounter == -1 )
1791- return ;
1792-
1793- donationCounter++;
1794- if (donationCounter % constants::donationBoundary == 0 ) {
1795- auto msg = " Feather development is funded entirely through donations.\n\n Please consider supporting "
1796- " the project. Donate any amount to remove this reminder." ;
1797- int ret = QMessageBox::information (this , " Donate to Feather" , msg, QMessageBox::Yes, QMessageBox::No);
1798- if (ret == QMessageBox::Yes) {
1799- this ->donateButtonClicked ();
1800- }
1801- }
1802- conf ()->set (Config::donateBeg, donationCounter);
1803- }
1804-
18051765void MainWindow::addToRecentlyOpened (QString keysFile) {
18061766 auto recent = conf ()->get (Config::recentlyOpenedWallets).toList ();
18071767
0 commit comments