Skip to content

Commit

Permalink
Rename balance update method
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyGiorgio committed May 15, 2024
1 parent e1ae790 commit 7fcb152
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 7fcb152

Please sign in to comment.