Format code with black and autopep8

This commit fixes the style issues introduced in d8746dd according to the output
from black and autopep8.

Details: https://deepsource.io/gh/GradienceTeam/Gradience/transform/ec767723-51f0-4b44-9dba-2ba20c879c19/
This commit is contained in:
deepsource-autofix[bot] 2022-09-10 08:38:43 +00:00 committed by GitHub
parent d8746ddfd5
commit 489021736e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 6 deletions

View file

@ -601,9 +601,9 @@ class GradienceApplication(Adw.Application):
os.path.join(gtk3_dir, "gtk.css"), "w", encoding="utf-8"
) as file:
file.write(gtk3_css)
self.plugins_list.apply()
self.win.toast_overlay.add_toast(
Adw.Toast(title=_("Preset set sucessfully"))
)
@ -809,12 +809,12 @@ This app is written in Python and uses GTK 4 and libadwaita.
self.props.active_window.update_errors(
self.global_errors + plugins_errors)
def reload_plugins(self):
buglog("reload plugins")
self.win.content_plugins.remove(self.plugins_group)
self.win.content_plugins.remove(self.custom_css_group)
self.plugins_group = self.plugins_list.to_group()
self.win.content_plugins.add(self.plugins_group)

View file

@ -50,4 +50,3 @@ class GradiencePluginRow(Adw.ActionRow):
@Gtk.Template.Callback()
def on_switch_toggled(self, *_args):
buglog("toggled")

View file

@ -95,4 +95,4 @@ class GradiencePluginsList:
def apply(self):
for pluginInfo in self.pm.getAllPlugins():
pluginInfo.plugin_object.apply()
pluginInfo.plugin_object.apply()