File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
StabilityMatrix.Avalonia/Models
StabilityMatrix.Core/Updater Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ public partial class UpdateChannelCard : ObservableObject
2020 [ NotifyPropertyChangedFor ( nameof ( IsLatestVersionUpdateable ) ) ]
2121 private SemVersion ? latestVersion ;
2222
23- public string ? LatestVersionString =>
24- LatestVersion is null ? null : $ "Latest: v{ LatestVersion } ";
23+ public string ? LatestVersionString => LatestVersion is null ? null : $ "Latest: v{ LatestVersion } ";
2524
2625 [ ObservableProperty ]
2726 private bool isSelectable = true ;
@@ -49,6 +48,12 @@ public bool IsLatestVersionUpdateable
4948 var updateHash = LatestVersion . Metadata ;
5049 var appHash = Compat . AppVersion . Metadata ;
5150
51+ // Always assume update if (We don't have hash && Update has hash)
52+ if ( string . IsNullOrEmpty ( appHash ) && ! string . IsNullOrEmpty ( updateHash ) )
53+ {
54+ return true ;
55+ }
56+
5257 // Trim both to the lower length, to a minimum of 7 characters
5358 var minLength = Math . Min ( 7 , Math . Min ( updateHash . Length , appHash . Length ) ) ;
5459 updateHash = updateHash [ ..minLength ] ;
Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ private bool ValidateUpdate(UpdateInfo? update)
277277 var appHash = Compat . AppVersion . Metadata ;
278278
279279 // Always assume update if (We don't have hash && Update has hash)
280- if ( string . IsNullOrEmpty ( updateHash ) && ! string . IsNullOrEmpty ( appHash ) )
280+ if ( string . IsNullOrEmpty ( appHash ) && ! string . IsNullOrEmpty ( updateHash ) )
281281 {
282282 return true ;
283283 }
You can’t perform that action at this time.
0 commit comments