Commit 36db0098 authored by Felipe Borges's avatar Felipe Borges Committed by Georges Basile Stavracas Neto
Browse files

notifications: Invert the "Do not disturb" switch

The switch is binded to the "show-banners" gsetting. When DnD is
ON, users don't want banners, therefore "show-banners" is OFF.

For this reason we need to invert the switch.

Fixes #878
parent 054b16b6
......@@ -178,7 +178,7 @@ cc_notifications_panel_init (CcNotificationsPanel *panel)
g_settings_bind (panel->master_settings, "show-banners",
panel->dnd_switch,
"active", G_SETTINGS_BIND_DEFAULT);
"active", G_SETTINGS_BIND_INVERT_BOOLEAN);
g_settings_bind (panel->master_settings, "show-in-lock-screen",
panel->lock_screen_switch,
"active", G_SETTINGS_BIND_DEFAULT);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment