mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-11-05 20:14:00 +00:00
fix: builtin apply
This commit is contained in:
parent
ca6d50b218
commit
c178f0b129
1 changed files with 4 additions and 6 deletions
|
@ -31,9 +31,7 @@ class GradienceBuiltinPresetRow(Adw.ActionRow):
|
||||||
def on_apply_button_clicked(self, *_args):
|
def on_apply_button_clicked(self, *_args):
|
||||||
print("apply")
|
print("apply")
|
||||||
|
|
||||||
self.app.load_preset_from_file(os.path.join(
|
self.load_preset_from_resource(
|
||||||
os.environ.get("XDG_CONFIG_HOME",
|
f"{rootdir}/presets/"
|
||||||
os.environ["HOME"] + "/.config"),
|
+ to_slug_case(self.name) + ".json"
|
||||||
"presets",
|
)
|
||||||
to_slug_case(self.name) + ".json",
|
|
||||||
))
|
|
||||||
|
|
Loading…
Reference in a new issue