Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
athre0z committed Jun 26, 2018
2 parents 634f2ae + 4961cff commit a25f9ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/idaskins/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ def apply_stylesheet(self, abs_theme_dir, manifest):

def apply_stylesheet_from_settings(self):
theme_dir = self._settings.selected_theme_dir
abs_theme_dir = os.path.join(THEMES_DIR, theme_dir)
if theme_dir:
abs_theme_dir = os.path.join(THEMES_DIR, theme_dir)
try:
manifest = ThemeManifest(open(os.path.join(
abs_theme_dir, 'manifest.json'
Expand Down
3 changes: 2 additions & 1 deletion plugins/idaskins/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ def __init__(self):

@property
def selected_theme_dir(self):
return self._settings.value(SELECTED_THEME_DIR_KEY, None).encode()
theme_dir = self._settings.value(SELECTED_THEME_DIR_KEY, None)
return None if theme_dir is None else theme_dir.encode()

@selected_theme_dir.setter
def selected_theme_dir(self, v):
Expand Down

0 comments on commit a25f9ed

Please sign in to comment.