Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Oopsy, wrong variable
Browse files Browse the repository at this point in the history
  • Loading branch information
LyesSaadi authored Sep 23, 2022
1 parent f89a1d3 commit 94a4eb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gradience/presets_manager_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ def reload_pref_group(self):
buglog("file")
# keep compatiblity with old presets
if repo.name.endswith(".json"):
if not os.path.isdir(os.path.join(PRESET_DIR, "user")):
os.mkdir(os.path.join(PRESET_DIR, "user"))
if not os.path.isdir(os.path.join(preset_directory, "user")):
os.mkdir(os.path.join(preset_directory, "user"))

os.rename(repo, os.path.join(
preset_directory, "user", repo.name))
Expand Down

0 comments on commit 94a4eb4

Please sign in to comment.