mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 11:39:25 +00:00
libwalletqt: pause refresh during tx construction
This commit is contained in:
parent
a8f4cec925
commit
0ab4b8e9b8
1 changed files with 4 additions and 0 deletions
|
@ -832,6 +832,7 @@ void Wallet::setSelectedInputs(const QStringList &selectedInputs) {
|
||||||
|
|
||||||
void Wallet::createTransaction(const QString &address, quint64 amount, const QString &description, bool all) {
|
void Wallet::createTransaction(const QString &address, quint64 amount, const QString &description, bool all) {
|
||||||
this->tmpTxDescription = description;
|
this->tmpTxDescription = description;
|
||||||
|
pauseRefresh();
|
||||||
|
|
||||||
qInfo() << "Creating transaction";
|
qInfo() << "Creating transaction";
|
||||||
m_scheduler.run([this, all, address, amount] {
|
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<QString> &addresses, const QVector<quint64> &amounts, const QString &description) {
|
void Wallet::createTransactionMultiDest(const QVector<QString> &addresses, const QVector<quint64> &amounts, const QString &description) {
|
||||||
this->tmpTxDescription = description;
|
this->tmpTxDescription = description;
|
||||||
|
pauseRefresh();
|
||||||
|
|
||||||
qInfo() << "Creating transaction";
|
qInfo() << "Creating transaction";
|
||||||
m_scheduler.run([this, addresses, amounts] {
|
m_scheduler.run([this, addresses, amounts] {
|
||||||
|
@ -875,6 +877,7 @@ void Wallet::createTransactionMultiDest(const QVector<QString> &addresses, const
|
||||||
}
|
}
|
||||||
|
|
||||||
void Wallet::sweepOutputs(const QVector<QString> &keyImages, QString address, bool churn, int outputs) {
|
void Wallet::sweepOutputs(const QVector<QString> &keyImages, QString address, bool churn, int outputs) {
|
||||||
|
pauseRefresh();
|
||||||
if (churn) {
|
if (churn) {
|
||||||
address = this->address(0, 0);
|
address = this->address(0, 0);
|
||||||
}
|
}
|
||||||
|
@ -901,6 +904,7 @@ void Wallet::sweepOutputs(const QVector<QString> &keyImages, QString address, bo
|
||||||
|
|
||||||
void Wallet::onTransactionCreated(Monero::PendingTransaction *mtx, const QVector<QString> &address) {
|
void Wallet::onTransactionCreated(Monero::PendingTransaction *mtx, const QVector<QString> &address) {
|
||||||
qDebug() << Q_FUNC_INFO;
|
qDebug() << Q_FUNC_INFO;
|
||||||
|
startRefresh();
|
||||||
|
|
||||||
PendingTransaction *tx = new PendingTransaction(mtx, this);
|
PendingTransaction *tx = new PendingTransaction(mtx, this);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue