feat: Finish update sidebar notification, b=no-bug, c=common

This commit is contained in:
mr. m
2025-11-23 02:12:43 +01:00
parent 59641cb952
commit 7ab405a2c2
4 changed files with 10 additions and 4 deletions

View File

@@ -97,7 +97,6 @@ class ZenStartup {
// Just in case we didn't get the right size.
gZenUIManager.updateTabsToolbar();
this.closeWatermark();
checkForZenUpdates();
this.isReady = true;
});
}
@@ -163,6 +162,7 @@ class ZenStartup {
if (!Services.prefs.getBoolPref('zen.welcome-screen.seen', false)) {
Services.prefs.setBoolPref('zen.welcome-screen.seen', true);
Services.prefs.setStringPref('zen.updates.last-build-id', Services.appinfo.appBuildID);
Services.prefs.setStringPref('zen.updates.last-version', Services.appinfo.version);
Services.scriptloader.loadSubScript(
'chrome://browser/content/zen-components/ZenWelcome.mjs',
window
@@ -173,6 +173,7 @@ class ZenStartup {
}
async #createUpdateAnimation() {
checkForZenUpdates();
return await createWindowUpdateAnimation();
}
}

View File

@@ -10,8 +10,8 @@ const ZEN_UPDATE_SHOW = 'zen.updates.show-update-notification';
export default function checkForZenUpdates() {
const version = Services.appinfo.version;
const lastVersion = Services.prefs.getStringPref(ZEN_UPDATE_PREF, version);
const lastVersion = Services.prefs.getStringPref(ZEN_UPDATE_PREF, '');
Services.prefs.setStringPref(ZEN_UPDATE_PREF, version);
if (
version !== lastVersion &&
!gZenUIManager.testingEnabled &&

View File

@@ -622,3 +622,8 @@ body > #confetti {
display: none;
}
}
/* Sidebar notification */
:root:not([zen-sidebar-expanded='true']) zen-sidebar-notification {
display: none;
}

View File

@@ -19,7 +19,7 @@
"brandShortName": "Zen",
"brandFullName": "Zen Browser",
"release": {
"displayVersion": "1.17.8b",
"displayVersion": "1.17.9b",
"github": {
"repo": "zen-browser/desktop"
},