Skip to content

Commit 7ab405a

Browse files
committed
feat: Finish update sidebar notification, b=no-bug, c=common
1 parent 59641cb commit 7ab405a

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

src/zen/common/modules/ZenStartup.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ class ZenStartup {
9797
// Just in case we didn't get the right size.
9898
gZenUIManager.updateTabsToolbar();
9999
this.closeWatermark();
100-
checkForZenUpdates();
101100
this.isReady = true;
102101
});
103102
}
@@ -163,6 +162,7 @@ class ZenStartup {
163162
if (!Services.prefs.getBoolPref('zen.welcome-screen.seen', false)) {
164163
Services.prefs.setBoolPref('zen.welcome-screen.seen', true);
165164
Services.prefs.setStringPref('zen.updates.last-build-id', Services.appinfo.appBuildID);
165+
Services.prefs.setStringPref('zen.updates.last-version', Services.appinfo.version);
166166
Services.scriptloader.loadSubScript(
167167
'chrome://browser/content/zen-components/ZenWelcome.mjs',
168168
window
@@ -173,6 +173,7 @@ class ZenStartup {
173173
}
174174

175175
async #createUpdateAnimation() {
176+
checkForZenUpdates();
176177
return await createWindowUpdateAnimation();
177178
}
178179
}

src/zen/common/modules/ZenUpdates.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ const ZEN_UPDATE_SHOW = 'zen.updates.show-update-notification';
1010

1111
export default function checkForZenUpdates() {
1212
const version = Services.appinfo.version;
13-
const lastVersion = Services.prefs.getStringPref(ZEN_UPDATE_PREF, version);
14-
13+
const lastVersion = Services.prefs.getStringPref(ZEN_UPDATE_PREF, '');
14+
Services.prefs.setStringPref(ZEN_UPDATE_PREF, version);
1515
if (
1616
version !== lastVersion &&
1717
!gZenUIManager.testingEnabled &&

src/zen/common/styles/zen-single-components.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,3 +622,8 @@ body > #confetti {
622622
display: none;
623623
}
624624
}
625+
626+
/* Sidebar notification */
627+
:root:not([zen-sidebar-expanded='true']) zen-sidebar-notification {
628+
display: none;
629+
}

surfer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"brandShortName": "Zen",
2020
"brandFullName": "Zen Browser",
2121
"release": {
22-
"displayVersion": "1.17.8b",
22+
"displayVersion": "1.17.9b",
2323
"github": {
2424
"repo": "zen-browser/desktop"
2525
},

0 commit comments

Comments
 (0)