From 6ef1d8940f5844591f923ea1ff2d45fefd13b0b3 Mon Sep 17 00:00:00 2001 From: gg Date: Mon, 19 Jan 2026 00:26:56 -0500 Subject: [PATCH] squash! allow sending transactions when paused allow sweeping coins while paused, too --- src/CoinsWidget.cpp | 5 +++-- src/SendWidget.cpp | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/CoinsWidget.cpp b/src/CoinsWidget.cpp index edee303b..f51f1d70 100644 --- a/src/CoinsWidget.cpp +++ b/src/CoinsWidget.cpp @@ -10,6 +10,7 @@ #include "dialog/OutputSweepDialog.h" #include "utils/Icons.h" #include "utils/Utils.h" +#include "utils/config.h" #ifdef WITH_SCANNER #include "wizard/offline_tx_signing/OfflineTxSigningWizard.h" @@ -222,14 +223,14 @@ void CoinsWidget::viewOutput() { } void CoinsWidget::onSweepOutputs() { - if (!m_wallet->isConnected()) { + if (!m_wallet->isConnected() && !conf()->get(Config::syncPaused).toBool()) { Utils::showError(this, "Unable to create transaction", "Wallet is not connected to a node.", {"Wait for the wallet to automatically connect to a node.", "Go to File -> Settings -> Network -> Node to manually connect to a node."}, "nodes"); return; } - if (!m_wallet->isSynchronized()) { + if (!m_wallet->isSynchronized() && !conf()->get(Config::syncPaused).toBool()) { Utils::showError(this, "Unable to create transaction", "Wallet is not synchronized", {"Wait for wallet synchronization to complete"}, "synchronization"); return; } diff --git a/src/SendWidget.cpp b/src/SendWidget.cpp index cfc71c14..de34fae7 100644 --- a/src/SendWidget.cpp +++ b/src/SendWidget.cpp @@ -167,14 +167,14 @@ void SendWidget::sendClicked() { } } - if (!m_wallet->isConnected()) { + if (!m_wallet->isConnected() && !conf()->get(Config::syncPaused).toBool()) { Utils::showError(this, "Unable to create transaction", "Wallet is not connected to a node.", {"Wait for the wallet to automatically connect to a node.", "Go to File -> Settings -> Network -> Node to manually connect to a node."}, "nodes"); return; } - if (!m_wallet->isSynchronized()) { + if (!m_wallet->isSynchronized() && !conf()->get(Config::syncPaused).toBool()) { Utils::showError(this, "Unable to create transaction", "Wallet is not synchronized", {"Wait for wallet synchronization to complete"}, "synchronization"); return; } -- 2.52.0