mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-10-02 08:07:54 +00:00
Merge branch 'main' into deepsource-transform-ecd054ef
This commit is contained in:
commit
5273935ff1
3 changed files with 5 additions and 6 deletions
|
@ -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