-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix issue 132 #191
fix issue 132 #191
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all your work on this issue. The code looks good 👏 👏
However, I found an issue to fix before merging it. Please let me know if you need extra help or information to wrap up the PR.
src/chat/model_selector_list.rs
Outdated
@@ -134,7 +134,9 @@ impl Widget for ModelSelectorList { | |||
cx.begin_turtle(walk, self.layout); | |||
|
|||
if self.visible { | |||
self.draw_items(cx, &store.downloads.downloaded_files); | |||
if let Some(loaded_file) = store.get_loaded_downloaded_file() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is an issue. It could happen that there is no loaded_file
, for this reason is an Option
value.
You can replicate this corner case if you go to "My Models" and remove the current active model, and go back to the chat screen:
Looks like you can send the result of store.get_loaded_downloaded_file()
and attempt to unwrap it in the draw_items
function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found a minor issue with a loading bar in the model selector, but let's get this merged. I can fix it in a separate commit.
Thanks! 🎉
@jmbejar ,I think the arrow icon shouldn't appear when there are no available models, like this. |
No description provided.