lock: fix connection status

This commit is contained in:
tobtoht
2023-12-30 12:43:10 +01:00
parent 96bbdd126a
commit 6a3b3fc830
3 changed files with 8 additions and 3 deletions
+3 -1
View File
@@ -667,7 +667,6 @@ void MainWindow::onProxySettingsChanged() {
}
void MainWindow::onOfflineMode(bool offline) {
this->onConnectionStatusChanged(Wallet::ConnectionStatus_Disconnected);
m_wallet->setOffline(offline);
if (m_wallet->viewOnly()) {
@@ -717,6 +716,9 @@ void MainWindow::onRefreshSync(int height, int target) {
void MainWindow::onConnectionStatusChanged(int status)
{
// Note: Wallet does not emit this signal unless status is changed, so calling this function from MainWindow may
// result in the wrong connection status being displayed.
qDebug() << "Wallet connection status changed " << Utils::QtEnumToString(static_cast<Wallet::ConnectionStatus>(status));
// Update connection info in status bar.