File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -479,19 +479,22 @@ final class MenuItemController: NSObject, NSMenuDelegate {
479
479
480
480
if let latestId = ( feed. atomFeed? . entries? . first? . id!) {
481
481
let idArray = latestId. components ( separatedBy: " / " )
482
- let latestVersion = idArray. last
482
+ var latestVersion = idArray. last
483
483
484
484
// Do nothing with final builds, they are pulled manually when required
485
485
if ( latestVersion? . hasSuffix ( " final " ) ) ! {
486
486
return
487
487
}
488
488
489
+ // If the version has suffix of beta, strip suffix for later comparison and flag as beta
489
490
var beta = false
490
491
if ( latestVersion? . hasSuffix ( " beta " ) ) ! {
491
492
beta = true
492
493
if ( !self . prefs. betaNotifications) {
493
494
return
494
495
}
496
+
497
+ latestVersion = String ( latestVersion!. dropLast ( 4 ) )
495
498
}
496
499
497
500
let appVersion = Bundle . main. infoDictionary ? [ " CFBundleShortVersionString " ] as! String
You can’t perform that action at this time.
0 commit comments