Skip to content

Commit

Permalink
refresh the component immediately after create it
Browse files Browse the repository at this point in the history
  • Loading branch information
sangluo committed Aug 21, 2022
1 parent 044871f commit f20b920
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/apple/macos/component/arm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ impl Components {
CFStringGetCStringPtr(name.inner() as *const _, kCFStringEncodingUTF8);
let name_str = CStr::from_ptr(name_ptr).to_string_lossy().to_string();

self.inner
.push(Component::new(name_str, None, None, service));
let mut component = Component::new(name_str, None, None, service);
component.refresh();

self.inner.push(component);
}

self.client.replace(client);
Expand Down

0 comments on commit f20b920

Please sign in to comment.