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
1 changed files with 2 additions and 0 deletions

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', '') s.value = bool(uses_dark_mode()) or 'GNOME' in os.environ.get('XDG_CURRENT_DESKTOP', '')
if created and setting['key'] == "foreground": if created and setting['key'] == "foreground":
s.value = not bool(is_system_tray_available()) 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.label = setting['label']
s.save() s.save()