[devdocsgjs/main: 1015/1867] Fix error when no theme is set and the auto theme is not supported
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1015/1867] Fix error when no theme is set and the auto theme is not supported
- Date: Fri, 19 Nov 2021 23:47:39 +0000 (UTC)
commit 6832c1ccf68425684847435fbf5545e40829b264
Author: Jed Fox <git twopointzero us>
Date: Mon Jan 13 19:24:06 2020 -0500
Fix error when no theme is set and the auto theme is not supported
assets/javascripts/app/settings.coffee | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/assets/javascripts/app/settings.coffee b/assets/javascripts/app/settings.coffee
index eb1c9289..d3fc93e1 100644
--- a/assets/javascripts/app/settings.coffee
+++ b/assets/javascripts/app/settings.coffee
@@ -46,6 +46,10 @@ class app.Settings
get: (key) ->
return @cache[key] if @cache.hasOwnProperty(key)
@cache[key] = @store.get(key) ? @constructor.defaults[key]
+ if key == 'theme' and @cache[key] == 'auto' and !@darkModeQuery
+ @cache[key] = 'default'
+ else
+ @cache[key]
set: (key, value) ->
@store.set(key, value)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]