]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
disable Network Update Info when node disconnected
authorgg <chown_tee@proton.me>
Tue, 13 Jan 2026 02:13:41 +0000 (21:13 -0500)
committergg <chown_tee@proton.me>
Tue, 13 Jan 2026 02:13:41 +0000 (21:13 -0500)
src/MainWindow.cpp

index 5cd39aa5b2f6778eb591a06e4b72044801e87bcf..d04351caad13c84500671d90cb058047bff4f50c 100644 (file)
@@ -1054,6 +1054,10 @@ void MainWindow::onConnectionStatusChanged(int status)
 
     qDebug() << "Wallet connection status changed " << Utils::QtEnumToString(static_cast<Wallet::ConnectionStatus>(status));
 
+    if (m_updateNetworkInfoAction) {  // Maybe not initialized on first function call
+        m_updateNetworkInfoAction->setEnabled(status != Wallet::ConnectionStatus_Disconnected);
+    }
+
     // Update connection info in status bar.
 
     QIcon icon;