From: gg Date: Mon, 19 Jan 2026 05:26:56 +0000 (-0500) Subject: squash! allow sending transactions when paused X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=6ef1d8940f5844591f923ea1ff2d45fefd13b0b3;p=gamesguru%2Ffeather.git squash! allow sending transactions when paused allow sweeping coins while paused, too --- 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; }