1
0
Fork 0
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:
Julian Hofer 2019-07-15 11:49:46 +02:00 committed by Hofer-Julian
parent dd9b97b1b8
commit 1bb780897c

View file

@ -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()