Bug 1506411 - Port bug 1429488, part 5: Support persisting moz-extension resources. r=jorgk DONTBUILD
authorRichard Marti <richard.marti@gmail.com>
Sun, 11 Nov 2018 00:01:54 +0100
changeset 33693 5cdc6b2fd2fde4e6f80a3b14d79a3de096ebf98f
parent 33692 3d119b0a7fd7bc6eb370de0e9da0e52293707522
child 33694 46594970c9a26d02610c6fe3ee13834f1f124c2a
push id388
push userclokep@gmail.com
push dateMon, 28 Jan 2019 20:54:56 +0000
reviewersjorgk
bugs1506411, 1429488
Bug 1506411 - Port bug 1429488, part 5: Support persisting moz-extension resources. r=jorgk DONTBUILD
mail/base/content/mail-compacttheme.js
--- a/mail/base/content/mail-compacttheme.js
+++ b/mail/base/content/mail-compacttheme.js
@@ -18,17 +18,17 @@ var CompactTheme = {
     return this.styleSheet;
   },
 
   get isStyleSheetEnabled() {
     return this.styleSheet && !this.styleSheet.disabled;
   },
 
   get isThemeCurrentlyApplied() {
-    let theme = LightweightThemeManager.currentThemeForDisplay;
+    let theme = LightweightThemeManager.currentThemeWithPersistedData;
     return theme && (
            theme.id == "thunderbird-compact-dark@mozilla.org" ||
            theme.id == "thunderbird-compact-light@mozilla.org");
   },
 
   init() {
     Services.obs.addObserver(this, "lightweight-theme-styling-update");