mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-07-08 11:57:48 +00:00
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:
parent
d8746ddfd5
commit
489021736e
|
@ -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)
|
||||
|
|
|
@ -50,4 +50,3 @@ class GradiencePluginRow(Adw.ActionRow):
|
|||
@Gtk.Template.Callback()
|
||||
def on_switch_toggled(self, *_args):
|
||||
buglog("toggled")
|
||||
|
||||
|
|
|
@ -95,4 +95,4 @@ class GradiencePluginsList:
|
|||
|
||||
def apply(self):
|
||||
for pluginInfo in self.pm.getAllPlugins():
|
||||
pluginInfo.plugin_object.apply()
|
||||
pluginInfo.plugin_object.apply()
|
||||
|
|
Loading…
Reference in a new issue