Replace model selector with button if there aren't any models download

This commit is contained in:
jeffser
2024-10-12 17:25:23 -06:00
parent 1da6e31de1
commit 6242087152
3 changed files with 19 additions and 6 deletions

View File

@@ -831,7 +831,7 @@ Generate a title following these rules:
[element.set_sensitive(True) for element in sensitive_elements]
self.get_application().lookup_action('manage_models').set_enabled(True)
self.title_stack.set_visible_child_name('model_selector')
self.title_stack.set_visible_child_name('model_selector' if len(self.model_manager.get_model_list()) > 0 else 'no_models')
if state:
options = {