Remove no peers warning

This commit is contained in:
Aditya Kulkarni
2019-10-26 13:03:12 -07:00
parent b2376a87e6
commit 2b94c7f6d0
3 changed files with 1 additions and 15 deletions

View File

@@ -696,9 +696,6 @@ bool MainWindow::confirmTx(Tx tx, RecurringPaymentInfo* rpi) {
// Syncing warning
confirm.syncingWarning->setVisible(Settings::getInstance()->isSyncing());
// No peers warning
confirm.nopeersWarning->setVisible(Settings::getInstance()->getPeers() == 0);
// And FromAddress in the confirm dialog
confirm.sendFrom->setText(fnSplitAddressForWrap(tx.fromAddr));
confirm.sendFrom->setFont(fixedFont);

View File

@@ -158,14 +158,6 @@ void Settings::setSaveZtxs(bool save) {
QSettings().setValue("options/savesenttx", save);
}
void Settings::setPeers(int peers) {
_peerConnections = peers;
}
int Settings::getPeers() {
return _peerConnections;
}
//=================================
// Static Stuff
//=================================

View File

@@ -56,7 +56,7 @@ public:
bool getSaveZtxs();
void setSaveZtxs(bool save);
bool getAllowCustomFees();
void setAllowCustomFees(bool allow);
@@ -77,9 +77,6 @@ public:
void setZECPrice(double p) { zecPrice = p; }
double getZECPrice();
void setPeers(int peers);
int getPeers();
// Static stuff
static const QString txidStatusMessage;