Skip to content

Commit

Permalink
Fix #92
Browse files Browse the repository at this point in the history
  • Loading branch information
suchmememanyskill committed Aug 12, 2023
1 parent 2795d10 commit b95ab07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion css_theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self, themePath : str, json : dict, configPath : str = None):
self.modified = path.getmtime(self.configJsonPath) if path.exists(self.configJsonPath) else None

try:
if (os.path.join(themePath, "PRIORITY")):
if os.path.exists(os.path.join(themePath, "PRIORITY")):
with open(os.path.join(themePath, "PRIORITY")) as fp:
self.priority_mod = int(fp.readline().strip())
except:
Expand Down
3 changes: 1 addition & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,7 @@ async def _load(self):
async def _set_theme_score(self, theme : Theme):
if theme.name not in self.scores:
self.scores[theme.name] = 0

self.scores[theme.name] += theme.priority_mod
self.scores[theme.name] += theme.priority_mod

for x in theme.dependencies:
dependency = await self._get_theme(self, x)
Expand Down

0 comments on commit b95ab07

Please sign in to comment.