mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-10-06 09:37:52 +00:00
feat: add apply for presets
This commit is contained in:
parent
8992b7af93
commit
d8746ddfd5
2 changed files with 7 additions and 0 deletions
|
@ -601,6 +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"))
|
||||
)
|
||||
|
|
|
@ -92,3 +92,7 @@ class GradiencePluginsList:
|
|||
if error:
|
||||
errors.append(detail)
|
||||
return errors
|
||||
|
||||
def apply(self):
|
||||
for pluginInfo in self.pm.getAllPlugins():
|
||||
pluginInfo.plugin_object.apply()
|
Loading…
Reference in a new issue