]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
squash! allow sending transactions when paused
authorgg <chown_tee@proton.me>
Mon, 19 Jan 2026 05:26:56 +0000 (00:26 -0500)
committergg <chown_tee@proton.me>
Mon, 19 Jan 2026 05:26:56 +0000 (00:26 -0500)
allow sweeping coins while paused, too

src/CoinsWidget.cpp
src/SendWidget.cpp

index edee303bc263bc74e8a524f9bec5f2bcc904509e..f51f1d70422d811390c05cee208ed5a025c3e267 100644 (file)
@@ -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;
     }
index cfc71c141dac698d6ab8ae8d81ae149258b90c1d..de34fae7f96ac509680b7e9bc79d0c6da5b0df17 100644 (file)
@@ -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;
     }