fix: builtin apply

This commit is contained in:
0xMRTT 2022-08-23 11:25:26 +02:00
parent ca6d50b218
commit c178f0b129

View file

@ -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",
))