Merge branch 'main' into deepsource-transform-ecd054ef

This commit is contained in:
0xMRTT 2022-09-10 11:28:07 +02:00 committed by GitHub
commit 5273935ff1
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()