Skip to content

Commit

Permalink
Merge pull request #22 from MutinyWallet/rename-balance-update
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman authored May 15, 2024
2 parents e1ae790 + 7fcb152 commit 3cc656f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ impl HarborCore {
.unwrap();
}

// TODO: probably just do this in core_loaded?
async fn set_balance(&self) {
// Sends updates to the UI to refelect the initial state
async fn init_ui_state(&self) {
self.msg(CoreUIMsg::BalanceUpdated(self.balance)).await;
}

Expand Down Expand Up @@ -294,7 +294,7 @@ pub fn run_core() -> Subscription<Message> {

async fn process_core(core_handle: &mut bridge::CoreHandle, core: &HarborCore) {
// Initialize the ui's state
core.set_balance().await;
core.init_ui_state().await;

loop {
let msg = core_handle.recv().await;
Expand Down

0 comments on commit 3cc656f

Please sign in to comment.