From 8fbd91811b379d79fc2f74c81807b36147cd6c59 Mon Sep 17 00:00:00 2001 From: Romain Vigier Date: Wed, 30 Oct 2019 10:24:56 +0100 Subject: [PATCH] Don't error out when no value for NightLightActive exists --- src/extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.js b/src/extension.js index d61b669..410244d 100644 --- a/src/extension.js +++ b/src/extension.js @@ -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); }