mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Fix refresh counter display
Suspend readline when refreshing
This commit is contained in:
parent
c088d38a57
commit
c656dd0ede
1 changed files with 8 additions and 0 deletions
|
@ -63,6 +63,10 @@
|
||||||
#include "wallet/wallet_args.h"
|
#include "wallet/wallet_args.h"
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
|
#ifdef HAVE_READLINE
|
||||||
|
#include "readline_buffer.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace epee;
|
using namespace epee;
|
||||||
using namespace cryptonote;
|
using namespace cryptonote;
|
||||||
|
@ -1835,6 +1839,10 @@ bool simple_wallet::refresh_main(uint64_t start_height, bool reset)
|
||||||
if (reset)
|
if (reset)
|
||||||
m_wallet->rescan_blockchain(false);
|
m_wallet->rescan_blockchain(false);
|
||||||
|
|
||||||
|
#ifdef HAVE_READLINE
|
||||||
|
rdln::suspend_readline pause_readline;
|
||||||
|
#endif
|
||||||
|
|
||||||
message_writer() << tr("Starting refresh...");
|
message_writer() << tr("Starting refresh...");
|
||||||
|
|
||||||
uint64_t fetched_blocks = 0;
|
uint64_t fetched_blocks = 0;
|
||||||
|
|
Loading…
Reference in a new issue