From 0ab4b8e9b8b4e295dba4824e2d53656d1426d068 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Tue, 12 Mar 2024 16:43:58 +0100 Subject: [PATCH] libwalletqt: pause refresh during tx construction --- src/libwalletqt/Wallet.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index e5c2bbb..f3bb3d1 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -832,6 +832,7 @@ void Wallet::setSelectedInputs(const QStringList &selectedInputs) { void Wallet::createTransaction(const QString &address, quint64 amount, const QString &description, bool all) { this->tmpTxDescription = description; + pauseRefresh(); qInfo() << "Creating transaction"; m_scheduler.run([this, all, address, amount] { @@ -850,6 +851,7 @@ void Wallet::createTransaction(const QString &address, quint64 amount, const QSt void Wallet::createTransactionMultiDest(const QVector &addresses, const QVector &amounts, const QString &description) { this->tmpTxDescription = description; + pauseRefresh(); qInfo() << "Creating transaction"; m_scheduler.run([this, addresses, amounts] { @@ -875,6 +877,7 @@ void Wallet::createTransactionMultiDest(const QVector &addresses, const } void Wallet::sweepOutputs(const QVector &keyImages, QString address, bool churn, int outputs) { + pauseRefresh(); if (churn) { address = this->address(0, 0); } @@ -901,6 +904,7 @@ void Wallet::sweepOutputs(const QVector &keyImages, QString address, bo void Wallet::onTransactionCreated(Monero::PendingTransaction *mtx, const QVector &address) { qDebug() << Q_FUNC_INFO; + startRefresh(); PendingTransaction *tx = new PendingTransaction(mtx, this);