mirror of
https://github.com/borgbase/vorta
synced 2025-01-03 05:36:19 +00:00
Default opt-in for enable_notifications_success if system tray is not available
This commit is contained in:
parent
dd9b97b1b8
commit
1bb780897c
1 changed files with 2 additions and 0 deletions
|
@ -263,6 +263,8 @@ def init_db(con):
|
|||
s.value = bool(uses_dark_mode()) or 'GNOME' in os.environ.get('XDG_CURRENT_DESKTOP', '')
|
||||
if created and setting['key'] == "foreground":
|
||||
s.value = not bool(is_system_tray_available())
|
||||
if created and setting['key'] == "enable_notifications_success":
|
||||
s.value = not bool(is_system_tray_available())
|
||||
s.label = setting['label']
|
||||
s.save()
|
||||
|
||||
|
|
Loading…
Reference in a new issue