Merge branch 'ArtyIF:main' into main

This commit is contained in:
allaeddine-boulefaat 2022-07-19 23:28:22 +01:00 committed by GitHub
commit 1bc8f99e99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,6 +80,10 @@ class AdwcustomizerApplication(Adw.Application):
win.content.add(pref_group)
dir = os.path.join(os.environ['XDG_CONFIG_HOME'],"adwcustomizer","presets")
if not os.path.exists(dir):
os.makedirs(dir)
self.load_preset_from_resource('/com/github/ArtyIF/AdwCustomizer/presets/adwaita.json')
self.create_stateful_action("load_preset", GLib.VariantType.new('s'), GLib.Variant('s', 'adwaita'), self.load_preset_action)