Skip to content

Commit

Permalink
Fix #149
Browse files Browse the repository at this point in the history
  • Loading branch information
l0drex committed Jan 2, 2023
1 parent a6fea78 commit 0250aea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugins/_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ def get_input(self, widget):
# set index
is_dark = i == 1
theme: str = self.theme_dark if is_dark else self.theme_light
if theme == '':
logger.warning(f'Used theme is unknown for plugin {self.name}')
curComboBox.setCurrentIndex(0)
else:
try:
curComboBox.setCurrentIndex(themes.index(self.available_themes[theme]))
except (KeyError, ValueError):
logger.warning(f'Couldn\'t find theme {theme} in plugin {self.name}')
curComboBox.setCurrentIndex(0)
return inputs
else:
for is_dark in [False, True]:
Expand Down

0 comments on commit 0250aea

Please sign in to comment.