Skip to content

Commit dd9f0e3

Browse files
committed
Make sure we display the loading animation when no model is loaded
1 parent 31c0d60 commit dd9f0e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/chat/model_selector.rs

+2
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ impl ModelSelector {
307307
self.open = false;
308308
self.view(id!(options)).apply_over(cx, live! { height: 0 });
309309
self.animator_cut(cx, id!(open.hide));
310+
self.redraw(cx);
310311
}
311312

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

406407
fn no_active_model(store: &Store) -> bool {
407408
store.get_loaded_downloaded_file().is_none()
409+
&& store.chats.get_currently_loading_model().is_none()
408410
}

0 commit comments

Comments
 (0)