mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-10-05 17:17:53 +00:00
Format code with black and autopep8
This commit fixes the style issues introduced in c1d34d6
according to the output
from black and autopep8.
Details: https://deepsource.io/gh/GradienceTeam/Gradience/transform/e09716f7-b874-44c9-9460-9429d37866ca/
This commit is contained in:
parent
c1d34d62b5
commit
ac7c01cddf
1 changed files with 16 additions and 11 deletions
|
@ -157,7 +157,8 @@ class GradienceApplication(Adw.Application):
|
|||
self.win.present()
|
||||
|
||||
def save_favourite(self):
|
||||
self.settings.set_value("favourite", GLib.Variant("as", self.favourite))
|
||||
self.settings.set_value(
|
||||
"favourite", GLib.Variant("as", self.favourite))
|
||||
|
||||
def reload_user_defined_presets(self):
|
||||
if self.props.active_window.presets_menu.get_n_items() > 1:
|
||||
|
@ -241,8 +242,8 @@ class GradienceApplication(Adw.Application):
|
|||
menu_item.set_label(preset_name)
|
||||
if not preset.startswith("error"):
|
||||
menu_item.set_action_and_target_value(
|
||||
"app.load_preset", GLib.Variant(
|
||||
"s", "custom-" + preset)
|
||||
"app.load_preset",
|
||||
GLib.Variant("s", "custom-" + preset),
|
||||
)
|
||||
else:
|
||||
menu_item.set_action_and_target_value("")
|
||||
|
@ -1020,15 +1021,19 @@ This app is written in Python and uses GTK 4 and libadwaita.
|
|||
"""
|
||||
),
|
||||
)
|
||||
about.add_credit_section("Plugins", [
|
||||
about.add_credit_section(
|
||||
"Plugins",
|
||||
[
|
||||
"0xMRTT https://github.com/0xMRTT",
|
||||
"Jan Apisu https://github.com/aspizu",
|
||||
]
|
||||
],
|
||||
)
|
||||
about.add_credit_section("Packagers", [
|
||||
about.add_credit_section(
|
||||
"Packagers",
|
||||
[
|
||||
"0xMRTT https://github.com/0xMRTT",
|
||||
"Lyes Saadi https://github.com/lyessaadi",
|
||||
]
|
||||
],
|
||||
)
|
||||
about.present()
|
||||
|
||||
|
|
Loading…
Reference in a new issue