Fixed launch error when displaying welcome dialog
This commit is contained in:
parent
eb92126e4b
commit
a0338bcccb
@ -328,6 +328,7 @@ class AlpacaWindow(Adw.ApplicationWindow):
|
|||||||
@Gtk.Template.Callback()
|
@Gtk.Template.Callback()
|
||||||
def model_search_changed(self, entry):
|
def model_search_changed(self, entry):
|
||||||
results = 0
|
results = 0
|
||||||
|
if self.model_manager:
|
||||||
for model in list(self.model_manager.available_list):
|
for model in list(self.model_manager.available_list):
|
||||||
model.set_visible(re.search(entry.get_text(), '{} {} {} {} {}'.format(model.get_name(), model.model_title, model.model_author, model.model_description, (_('image') if model.image_recognition else '')), re.IGNORECASE))
|
model.set_visible(re.search(entry.get_text(), '{} {} {} {} {}'.format(model.get_name(), model.model_title, model.model_author, model.model_description, (_('image') if model.image_recognition else '')), re.IGNORECASE))
|
||||||
if model.get_visible():
|
if model.get_visible():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user