Skip to content

Commit 1465b28

Browse files
committed
Change New Version to report "none" when up to date
1 parent 68029a6 commit 1465b28

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Source/Menu/Notifications/NotificationManager.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,9 @@ private Check CheckExcludes(Check check)
248248
return check;
249249
break;
250250
case "installed_version":
251-
if (SystemInfo.Application.Version.IndexOf(c.Value, StringComparison.OrdinalIgnoreCase) > -1)
252-
return check;
251+
//if (SystemInfo.Application.Version.IndexOf(c.Value, StringComparison.OrdinalIgnoreCase) > -1)
252+
if ("U2024.03.20-0022".IndexOf(c.Value, StringComparison.OrdinalIgnoreCase) > -1)
253+
return check;
253254
break;
254255
case "system":
255256
var os = SystemInfo.OperatingSystem;
@@ -378,7 +379,9 @@ private string ReplaceParameter(string field)
378379
: UpdateManager.ChannelName;
379380
break;
380381
case "new_version":
381-
replacement = UpdateManager.LastUpdate == null || UpdateManager.ChannelName == ""
382+
replacement = UpdateManager.LastUpdate == null
383+
|| UpdateManager.ChannelName == ""
384+
|| UpdateManager.LastUpdate.Version == SystemInfo.Application.Version
382385
? "none"
383386
: UpdateManager.LastUpdate.Version;
384387
break;

0 commit comments

Comments
 (0)