We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45be10b commit 12f0833Copy full SHA for 12f0833
1 file changed
mac/Sources/CodeBurnMenubar/Data/UpdateChecker.swift
@@ -18,7 +18,8 @@ final class UpdateChecker {
18
let current = currentVersion
19
let normalizedLatest = latest.hasPrefix("v") ? String(latest.dropFirst()) : latest
20
let normalizedCurrent = current.hasPrefix("v") ? String(current.dropFirst()) : current
21
- return !normalizedCurrent.isEmpty && normalizedCurrent != "dev" && normalizedLatest != normalizedCurrent
+ guard !normalizedCurrent.isEmpty && normalizedCurrent != "dev" else { return false }
22
+ return normalizedLatest.compare(normalizedCurrent, options: .numeric) == .orderedDescending
23
}
24
25
var currentVersion: String {
0 commit comments