mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-08 17:47:27 -04:00
Balance on UI updated by the signal
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <QDir>
|
||||
#include <QDebug>
|
||||
#include <QUrl>
|
||||
#include <QTimer>
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -81,7 +82,10 @@ quint64 Wallet::unlockedBalance() const
|
||||
|
||||
bool Wallet::refresh()
|
||||
{
|
||||
return m_walletImpl->refresh();
|
||||
bool result = m_walletImpl->refresh();
|
||||
if (result)
|
||||
emit updated();
|
||||
return result;
|
||||
}
|
||||
|
||||
PendingTransaction *Wallet::createTransaction(const QString &dst_addr, quint64 amount)
|
||||
|
||||
@@ -85,6 +85,9 @@ public:
|
||||
TransactionHistory * history();
|
||||
|
||||
// TODO: setListenter() when it implemented in API
|
||||
signals:
|
||||
void updated();
|
||||
|
||||
|
||||
private:
|
||||
Wallet(Bitmonero::Wallet *w, QObject * parent = 0);
|
||||
|
||||
Reference in New Issue
Block a user