Update balance on ratio change (#1647)

This commit is contained in:
cryptocode 2019-01-26 22:51:51 +01:00 committed by GitHub
commit 607c1caccc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1428,6 +1428,8 @@ void nano_qt::wallet::change_rendering_ratio (nano::uint128_t const & rendering_
{
application.postEvent (&processor, new eventloop_event ([this, rendering_ratio_a]() {
this->rendering_ratio = rendering_ratio_a;
auto balance_l (this->node.balance_pending (account));
this->self.set_balance_text (balance_l);
this->refresh ();
}));
}