Format code with black and autopep8 (#386)

This commit is contained in:
0xMRTT 2022-09-10 15:52:50 +02:00 committed by GitHub
commit cda9b1e639
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -62,7 +62,9 @@ class GradiencePluginRow(Adw.ActionRow):
@Gtk.Template.Callback()
def on_remove_plugin_clicked(self, *_args):
plugin_yapsy_file = USER_PLUGIN_DIR / f"{self.plugin_object.plugin_id}.yapsy-plugin"
plugin_yapsy_file = (
USER_PLUGIN_DIR / f"{self.plugin_object.plugin_id}.yapsy-plugin"
)
buglog("remove", plugin_yapsy_file)
os.remove(plugin_yapsy_file)
Gtk.Application.get_default().reload_plugins()

View file

@ -63,7 +63,7 @@ class GradiencePluginsList:
self.app.settings.get_value("enabled-plugins").unpack()
)
def save_enabled_plugins(self):
def save_enabled_plugins(self):
self.app.settings.set_value(
"enabled-plugins", GLib.Variant("as", list(self.enabled_plugins))
)