Extract auto_update_ui crate (#21008)

This PR extracts an `auto_update_ui` crate out of the `auto_update`
crate.

This allows `auto_update` to not depend on heavier crates like `editor`,
which in turn allows other downstream crates to start building sooner.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-11-21 14:11:57 -05:00 committed by GitHub
parent 841d3221b3
commit f62ccf9c8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 217 additions and 166 deletions

View file

@ -23,6 +23,7 @@ assistant.workspace = true
async-watch.workspace = true
audio.workspace = true
auto_update.workspace = true
auto_update_ui.workspace = true
backtrace = "0.3"
breadcrumbs.workspace = true
call.workspace = true

View file

@ -367,6 +367,7 @@ fn main() {
AppState::set_global(Arc::downgrade(&app_state), cx);
auto_update::init(client.http_client(), cx);
auto_update_ui::init(cx);
reliability::init(
client.http_client(),
system_id.as_ref().map(|id| id.to_string()),

View file

@ -223,7 +223,7 @@ pub fn initialize_workspace(
status_bar.add_right_item(cursor_position, cx);
});
auto_update::notify_of_any_new_update(cx);
auto_update_ui::notify_of_any_new_update(cx);
let handle = cx.view().downgrade();
cx.on_window_should_close(move |cx| {