Skip to content

Commit bf0fc47

Browse files
committed
fix: update icon shown after showing what's new just after update
1 parent 75d459a commit bf0fc47

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • src/extensionsIntegrated/appUpdater

src/extensionsIntegrated/appUpdater/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,10 @@ define(function (require, exports, module) {
609609
Dialogs.showInfoDialog(Strings.UPDATE_WHATS_NEW, markdownHtml);
610610
PreferencesManager.setViewState(KEY_LAST_UPDATE_DESCRIPTION, null);
611611
PreferencesManager.setViewState(KEY_UPDATE_AVAILABLE, false);
612+
// hide the update available icon as we are showing what's new dialog. In edge cases, there can be an update
613+
// at this time if the user opened phcode after an update, but a new update was just published or the user
614+
// didn't open phcode after last update, which a new update was published.
615+
$("#update-notification").addClass("forced-hidden");
612616
}
613617
// check for updates at boot
614618
let lastUpdateCheckTime = PreferencesManager.getViewState(KEY_LAST_UPDATE_CHECK_TIME);

0 commit comments

Comments
 (0)