mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-10-04 00:47:52 +00:00
Format code with black and autopep8
This commit fixes the style issues introduced in ffd626d
according to the output
from black and autopep8.
Details: https://deepsource.io/gh/GradienceTeam/Gradience/transform/362e9321-861d-4493-b53c-93fd24f08ff1/
This commit is contained in:
parent
ffd626dd43
commit
825da9673d
2 changed files with 9 additions and 5 deletions
|
@ -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()
|
||||
|
|
|
@ -40,7 +40,8 @@ class GradiencePluginsList:
|
|||
self.check_if_plugin_dir_exists()
|
||||
|
||||
self.app = self.win.get_application()
|
||||
self.enabled_plugins = set(self.app.settings.get_value("enabled-plugins").unpack())
|
||||
self.enabled_plugins = set(
|
||||
self.app.settings.get_value("enabled-plugins").unpack())
|
||||
self.rows = {}
|
||||
|
||||
self.reload()
|
||||
|
@ -61,6 +62,7 @@ class GradiencePluginsList:
|
|||
self.app.settings.get_value("enabled-plugins").unpack()
|
||||
)
|
||||
|
||||
|
||||
(feat: add plugin deletion)
|
||||
def save_enabled_plugins(self):
|
||||
self.app.settings.set_value(
|
||||
|
|
Loading…
Reference in a new issue