From 7fd6ea36da53bf8c0559fb780e87e0468cd4223c Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sat, 10 Feb 2024 16:28:24 +0800 Subject: [PATCH] UpdateSputnik // Patch a misnotification. --- .../Sources/UpdateSputnik/UpdateSputnik.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Packages/vChewing_UpdateSputnik/Sources/UpdateSputnik/UpdateSputnik.swift b/Packages/vChewing_UpdateSputnik/Sources/UpdateSputnik/UpdateSputnik.swift index 1105fcf2..7ac184ce 100644 --- a/Packages/vChewing_UpdateSputnik/Sources/UpdateSputnik/UpdateSputnik.swift +++ b/Packages/vChewing_UpdateSputnik/Sources/UpdateSputnik/UpdateSputnik.swift @@ -126,7 +126,8 @@ public class UpdateSputnik { let intCurrentVersion = Int(dicMainBundle[kCFBundleVersionKey as String] as? String ?? ""), let strCurrentVersionShortened = dicMainBundle["CFBundleShortVersionString"] as? String else { return } // Shouldn't happen. - let isRemoteMainStreamDistro: Bool = dicMainBundle["IsMainStreamDistro"] as? Bool ?? true + /// 註:此處 isRemoteMainStreamDistro 在 Aqua 紀念版內應該設為 false;主流版則為 true。 + let isRemoteMainStreamDistro: Bool = plist["IsMainStreamDistro"] as? Bool ?? true let crossDistroNotification = Self.isMainStreamRelease != isRemoteMainStreamDistro versionCheck: if intRemoteVersion <= intCurrentVersion { guard isCurrentCheckForced else { return }