Fixes by autopep8 action (#246)

This commit is contained in:
0xMRTT 2022-08-23 13:24:37 +02:00 committed by GitHub
commit 38444a2129
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,7 +69,8 @@ class GradiencePresetWindow(Adw.Window):
def setup_explore(self):
self.explore_list = Adw.PreferencesGroup()
self.explore_list.set_title(_("Explore community presets"))
self.explore_list.set_description(_("See <a href=\"https://github.com/GradienceTeam/Community\">GradienceTeam/Community</a> on Github for more presets"))
self.explore_list.set_description(
_("See <a href=\"https://github.com/GradienceTeam/Community\">GradienceTeam/Community</a> on Github for more presets"))
empty = Adw.ActionRow()
empty.set_title(_("Not available yet"))
@ -110,9 +111,8 @@ class GradiencePresetWindow(Adw.Window):
Adw.Toast(title=_("Succesfuly imported preset"))
)
else:
self.toast_overlay.add_toast(
Adw.Toast(title=_("Unsupported file format, must be .json"))
)
self.toast_overlay.add_toast(Adw.Toast(
title=_("Unsupported file format, must be .json")))
self.reload_pref_group()
@ -160,7 +160,8 @@ class GradiencePresetWindow(Adw.Window):
self.preset_list = Adw.PreferencesGroup()
self.preset_list.set_title(_("User Presets"))
self.preset_list.set_description(_("See <a href=\"https://github.com/GradienceTeam/Community\">GradienceTeam/Community</a> on Github for more presets"))
self.preset_list.set_description(
_("See <a href=\"https://github.com/GradienceTeam/Community\">GradienceTeam/Community</a> on Github for more presets"))
if self.custom_presets:
for preset, preset_name in self.custom_presets.items():
@ -168,6 +169,7 @@ class GradiencePresetWindow(Adw.Window):
self.preset_list.add(row)
else:
self.preset_empty = Adw.ActionRow()
self.preset_empty.set_title(_("No preset found! Use the import button to import one or search one on the Explore tab"))
self.preset_empty.set_title(
_("No preset found! Use the import button to import one or search one on the Explore tab"))
self.preset_list.add(self.preset_empty)
self.installed.add(self.preset_list)