Skip to content

Commit

Permalink
restore load model on selector change
Browse files Browse the repository at this point in the history
  • Loading branch information
noxware committed Aug 13, 2024
1 parent c6f59f6 commit 483c348
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/chat/chat_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,8 @@ impl WidgetMatchEvent for ChatPanel {
}

if let ModelSelectorAction::Selected(downloaded_file) = action.cast() {
store.load_model(&downloaded_file.file);

if let Some(chat) = store.chats.get_current_chat() {
chat.borrow_mut().last_used_file_id = Some(downloaded_file.file.id.clone());
chat.borrow().save();
Expand Down

0 comments on commit 483c348

Please sign in to comment.