mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-08-23 16:02:33 +00:00
Format code with black and autopep8
This commit fixes the style issues introduced in ae50338
according to the output
from black and autopep8.
Details: https://deepsource.io/gh/GradienceTeam/Gradience/transform/5eef88ba-5e7d-49fd-8e3f-12dd9c35879c/
This commit is contained in:
parent
ae5033869b
commit
926f5e4f2f
1 changed files with 12 additions and 3 deletions
|
@ -150,7 +150,10 @@ class GradiencePresetWindow(Adw.Window):
|
||||||
if self.search_dropdown.props.selected_item.get_string().lower() in "all":
|
if self.search_dropdown.props.selected_item.get_string().lower() in "all":
|
||||||
self.search_string_list.append(repo_name)
|
self.search_string_list.append(repo_name)
|
||||||
fetch(repo_name=repo_name, repo=repo)
|
fetch(repo_name=repo_name, repo=repo)
|
||||||
elif self.search_dropdown.props.selected_item.get_string().lower() in repo_name:
|
elif (
|
||||||
|
self.search_dropdown.props.selected_item.get_string().lower()
|
||||||
|
in repo_name
|
||||||
|
):
|
||||||
self.search_string_list.append(repo_name)
|
self.search_string_list.append(repo_name)
|
||||||
fetch(repo_name=repo_name, repo=repo)
|
fetch(repo_name=repo_name, repo=repo)
|
||||||
|
|
||||||
|
@ -235,8 +238,14 @@ class GradiencePresetWindow(Adw.Window):
|
||||||
widget.props.visible = True
|
widget.props.visible = True
|
||||||
else:
|
else:
|
||||||
widget.props.visible = False
|
widget.props.visible = False
|
||||||
if not self.search_dropdown.props.selected_item.get_string().lower() in "all":
|
if (
|
||||||
if self.search_dropdown.props.selected_item.get_string().lower() in widget.props.subtitle.lower():
|
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 search_text.lower() in widget.props.title.lower():
|
if search_text.lower() in widget.props.title.lower():
|
||||||
widget.props.visible = True
|
widget.props.visible = True
|
||||||
buglog(widget.props.title)
|
buglog(widget.props.title)
|
||||||
|
|
Loading…
Reference in a new issue