Remove no peers warning
This commit is contained in:
@@ -696,9 +696,6 @@ bool MainWindow::confirmTx(Tx tx, RecurringPaymentInfo* rpi) {
|
|||||||
// Syncing warning
|
// Syncing warning
|
||||||
confirm.syncingWarning->setVisible(Settings::getInstance()->isSyncing());
|
confirm.syncingWarning->setVisible(Settings::getInstance()->isSyncing());
|
||||||
|
|
||||||
// No peers warning
|
|
||||||
confirm.nopeersWarning->setVisible(Settings::getInstance()->getPeers() == 0);
|
|
||||||
|
|
||||||
// And FromAddress in the confirm dialog
|
// And FromAddress in the confirm dialog
|
||||||
confirm.sendFrom->setText(fnSplitAddressForWrap(tx.fromAddr));
|
confirm.sendFrom->setText(fnSplitAddressForWrap(tx.fromAddr));
|
||||||
confirm.sendFrom->setFont(fixedFont);
|
confirm.sendFrom->setFont(fixedFont);
|
||||||
|
|||||||
@@ -158,14 +158,6 @@ void Settings::setSaveZtxs(bool save) {
|
|||||||
QSettings().setValue("options/savesenttx", save);
|
QSettings().setValue("options/savesenttx", save);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Settings::setPeers(int peers) {
|
|
||||||
_peerConnections = peers;
|
|
||||||
}
|
|
||||||
|
|
||||||
int Settings::getPeers() {
|
|
||||||
return _peerConnections;
|
|
||||||
}
|
|
||||||
|
|
||||||
//=================================
|
//=================================
|
||||||
// Static Stuff
|
// Static Stuff
|
||||||
//=================================
|
//=================================
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ public:
|
|||||||
|
|
||||||
bool getSaveZtxs();
|
bool getSaveZtxs();
|
||||||
void setSaveZtxs(bool save);
|
void setSaveZtxs(bool save);
|
||||||
|
|
||||||
bool getAllowCustomFees();
|
bool getAllowCustomFees();
|
||||||
void setAllowCustomFees(bool allow);
|
void setAllowCustomFees(bool allow);
|
||||||
|
|
||||||
@@ -77,9 +77,6 @@ public:
|
|||||||
void setZECPrice(double p) { zecPrice = p; }
|
void setZECPrice(double p) { zecPrice = p; }
|
||||||
double getZECPrice();
|
double getZECPrice();
|
||||||
|
|
||||||
void setPeers(int peers);
|
|
||||||
int getPeers();
|
|
||||||
|
|
||||||
// Static stuff
|
// Static stuff
|
||||||
static const QString txidStatusMessage;
|
static const QString txidStatusMessage;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user