Don't error out when no value for NightLightActive exists

This commit is contained in:
Romain Vigier
2019-10-30 10:24:56 +01:00
parent 3a59f4ce9f
commit 8fbd91811b
+1 -1
View File
@@ -74,7 +74,7 @@ function _build_theme_variants() {
}
function _apply_theme_variant() {
nightlight_active = proxy.get_cached_property('NightLightActive').get_boolean();
nightlight_active = proxy.get_cached_property('NightLightActive').get_boolean() || false;
_set_theme(nightlight_active ? user_theme_night : user_theme_day);
}