]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
nodes: don't set status text
authortobtoht <thotbot@protonmail.com>
Tue, 15 Mar 2022 10:32:47 +0000 (11:32 +0100)
committertobtoht <thotbot@protonmail.com>
Tue, 15 Mar 2022 10:32:47 +0000 (11:32 +0100)
src/MainWindow.cpp
src/MainWindow.h
src/utils/nodes.cpp
src/utils/nodes.h

index 941146894d7628b611aa5a413634bf4918b0024f..ab75aecf995471e535a2cd283b66f6c655726861 100644 (file)
@@ -383,7 +383,6 @@ void MainWindow::initWalletContext() {
     connect(m_ctx.get(), &AppContext::keysCorrupted,            this, &MainWindow::onKeysCorrupted);
 
     // Nodes
-    connect(m_ctx->nodes, &Nodes::updateStatus,    this, &MainWindow::onSetStatusText);
     connect(m_ctx->nodes, &Nodes::nodeExhausted,   this, &MainWindow::showNodeExhaustedMessage);
     connect(m_ctx->nodes, &Nodes::WSNodeExhausted, this, &MainWindow::showWSNodeExhaustedMessage);
 
@@ -513,10 +512,6 @@ void MainWindow::onBalanceUpdated(quint64 balance, quint64 spendable) {
     m_balanceTickerWidget->setHidden(hide);
 }
 
-void MainWindow::onSetStatusText(const QString &text) {
-    this->setStatusText(text);
-}
-
 void MainWindow::setStatusText(const QString &text, bool override, int timeout) {
     if (override) {
         m_statusOverrideActive = true;
index 3e2e3b82ad7de12806aaf4a455f43cc217341594..49c668a77a0a63ab9da7438b21bc1a476104b1aa 100644 (file)
@@ -181,7 +181,6 @@ private slots:
     void menuHwDeviceClicked();
     void onUpdatesAvailable(const QJsonObject &updates);
     void toggleSearchbar(bool enabled);
-    void onSetStatusText(const QString &text);
     void tryStoreWallet();
 
 private:
index 09d28218eeb02b3b7f08ab366da41274162a1f8b..86fc2395e58f37287ddefdfeddf878e16b09beba 100644 (file)
@@ -196,7 +196,6 @@ void Nodes::connectToNode(const FeatherNode &node) {
         return;
     }
 
-    emit updateStatus(QString("Connecting to %1").arg(node.toAddress()));
     qInfo() << QString("Attempting to connect to %1 (%2)").arg(node.toAddress()).arg(node.custom ? "custom" : "ws");
 
     if (!node.url.userName().isEmpty() && !node.url.password().isEmpty())
index 0477842f1c1648ea614602559936445b2a2b8530..939c46f5428a126683d2fba6ddbcb33d7c22e950 100644 (file)
@@ -137,7 +137,6 @@ public slots:
 signals:
     void WSNodeExhausted();
     void nodeExhausted();
-    void updateStatus(const QString &msg);
 
 private slots:
     void onWalletRefreshed();