mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-08-23 16:02:33 +00:00
fix: add repo selector
This commit is contained in:
parent
ece8b13838
commit
ae5033869b
1 changed files with 6 additions and 3 deletions
|
@ -147,8 +147,12 @@ class GradiencePresetWindow(Adw.Window):
|
||||||
offline = True
|
offline = True
|
||||||
|
|
||||||
for repo_name, repo in self._repos.items():
|
for repo_name, repo in self._repos.items():
|
||||||
self.search_string_list.append(repo_name)
|
if self.search_dropdown.props.selected_item.get_string().lower() in "all":
|
||||||
fetch(repo_name=repo_name, repo=repo)
|
self.search_string_list.append(repo_name)
|
||||||
|
fetch(repo_name=repo_name, repo=repo)
|
||||||
|
elif self.search_dropdown.props.selected_item.get_string().lower() in repo_name:
|
||||||
|
self.search_string_list.append(repo_name)
|
||||||
|
fetch(repo_name=repo_name, repo=repo)
|
||||||
|
|
||||||
if offline:
|
if offline:
|
||||||
self.search_spinner.props.visible = False
|
self.search_spinner.props.visible = False
|
||||||
|
@ -231,7 +235,6 @@ class GradiencePresetWindow(Adw.Window):
|
||||||
widget.props.visible = True
|
widget.props.visible = True
|
||||||
else:
|
else:
|
||||||
widget.props.visible = False
|
widget.props.visible = False
|
||||||
print(dir(self.search_dropdown.props.selected_item))
|
|
||||||
if not self.search_dropdown.props.selected_item.get_string().lower() in "all":
|
if not self.search_dropdown.props.selected_item.get_string().lower() in "all":
|
||||||
if self.search_dropdown.props.selected_item.get_string().lower() in widget.props.subtitle.lower():
|
if self.search_dropdown.props.selected_item.get_string().lower() in widget.props.subtitle.lower():
|
||||||
if search_text.lower() in widget.props.title.lower():
|
if search_text.lower() in widget.props.title.lower():
|
||||||
|
|
Loading…
Reference in a new issue