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):
|
||||
print("apply")
|
||||
|
||||
self.app.load_preset_from_file(os.path.join(
|
||||
os.environ.get("XDG_CONFIG_HOME",
|
||||
os.environ["HOME"] + "/.config"),
|
||||
"presets",
|
||||
to_slug_case(self.name) + ".json",
|
||||
))
|
||||
self.load_preset_from_resource(
|
||||
f"{rootdir}/presets/"
|
||||
+ to_slug_case(self.name) + ".json"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue