Skip to content

Commit

Permalink
Make sure we display the loading animation when no model is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbejar committed Jul 26, 2024
1 parent 31c0d60 commit dd9f0e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/chat/model_selector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ impl ModelSelector {
self.open = false;
self.view(id!(options)).apply_over(cx, live! { height: 0 });
self.animator_cut(cx, id!(open.hide));
self.redraw(cx);
}

fn update_loading_model_state(&mut self, cx: &mut Cx, store: &Store) {
Expand Down Expand Up @@ -405,4 +406,5 @@ fn options_to_display(store: &Store) -> bool {

fn no_active_model(store: &Store) -> bool {
store.get_loaded_downloaded_file().is_none()
&& store.chats.get_currently_loading_model().is_none()
}

0 comments on commit dd9f0e3

Please sign in to comment.