Skip to content

Commit

Permalink
Also set tray icon according to detected theme. Fixes #199
Browse files Browse the repository at this point in the history
  • Loading branch information
m3nu committed Feb 20, 2019
1 parent b23cdf9 commit a0372f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vorta/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ def init_db(con):
s, created = SettingsModel.get_or_create(key=setting['key'], defaults=setting)
if created and setting['key'] == "use_dark_theme":
s.value = bool(uses_dark_mode())
if created and setting['key'] == "use_light_icon":
s.value = bool(uses_dark_mode())
s.label = setting['label']
s.save()

Expand Down

0 comments on commit a0372f5

Please sign in to comment.