Skip to content

Commit 352765b

Browse files
committed
fix(Updater::Postpone): Clicking on the menu shouldn't force downloading the postponed release.
1 parent dd5399f commit 352765b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SoundSwitch/UI/Component/TrayIcon.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,14 +243,14 @@ private void SetEventHandlers()
243243

244244
private void NewReleaseAvailable(object sender, UpdateChecker.NewReleaseEvent newReleaseEvent)
245245
{
246-
_updateMenuItem.Tag = newReleaseEvent.Release;
247246
_updateMenuItem.Text = string.Format(TrayIconStrings.updateAvailable, newReleaseEvent.Release.ReleaseVersion);
248247
if (_postponeService.ShouldPostpone(newReleaseEvent.Release))
249248
{
250249
Log.Information("Release {release} has been postponed", newReleaseEvent.Release);
251250
return;
252251
}
253252

253+
_updateMenuItem.Tag = newReleaseEvent.Release;
254254
StartAnimationIconUpdate();
255255
NotifyIcon.BalloonTipClicked += OnUpdateClick;
256256
NotifyIcon.ShowBalloonTip(3000, string.Format(TrayIconStrings.versionAvailable, newReleaseEvent.Release.ReleaseVersion), newReleaseEvent.Release.Name + '\n' + TrayIconStrings.clickToUpdate, ToolTipIcon.Info);

0 commit comments

Comments
 (0)