Do not show update "View Release Notes" notification in nightly builds (#33394)

These are useless in nightly, as the link within the notification simply
directs us to a commit view on GitHub. We update frequently on nightly;
dismissing this after every update is annoying.

Release Notes:

- N/A
This commit is contained in:
Joseph T. Lyons 2025-06-25 13:28:06 -04:00 committed by GitHub
parent 2a5a1814cd
commit 3740eec5bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -132,6 +132,11 @@ pub fn notify_if_app_was_updated(cx: &mut App) {
let Some(updater) = AutoUpdater::get(cx) else {
return;
};
if let ReleaseChannel::Nightly = ReleaseChannel::global(cx) {
return;
}
let should_show_notification = updater.read(cx).should_show_update_notification(cx);
cx.spawn(async move |cx| {
let should_show_notification = should_show_notification.await?;