From 53db845506334acbf76cef4b96fa373b3e0ea0e3 Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Sun, 5 Apr 2026 16:44:00 +0200 Subject: [PATCH] v2.12.8 --- Kit/extensions.swift | 15 --------------- Kit/types.swift | 2 +- Stats.xcodeproj/project.pbxproj | 4 ++-- Stats/Supporting Files/Info.plist | 2 +- Widgets/Supporting Files/Info.plist | 4 ++-- 5 files changed, 6 insertions(+), 21 deletions(-) diff --git a/Kit/extensions.swift b/Kit/extensions.swift index e28bdb1d..72353a74 100644 --- a/Kit/extensions.swift +++ b/Kit/extensions.swift @@ -103,21 +103,6 @@ extension String: @retroactive LocalizedError { } } -public extension DispatchSource.MemoryPressureEvent { - func pressureColor() -> NSColor { - switch self { - case .normal: - return NSColor.systemGreen - case .warning: - return NSColor.systemYellow - case .critical: - return NSColor.systemRed - default: - return .controlAccentColor - } - } -} - public extension Double { func roundTo(decimalPlaces: Int) -> String { return NSString(format: "%.\(decimalPlaces)f" as NSString, self) as String diff --git a/Kit/types.swift b/Kit/types.swift index 78ee6a71..dbf5c86e 100644 --- a/Kit/types.swift +++ b/Kit/types.swift @@ -405,7 +405,7 @@ public enum RAMPressure: String, Codable { case warning case critical - func pressureColor() -> NSColor { + public func pressureColor() -> NSColor { switch self { case .normal: return NSColor.systemGreen diff --git a/Stats.xcodeproj/project.pbxproj b/Stats.xcodeproj/project.pbxproj index 22867692..b664067a 100644 --- a/Stats.xcodeproj/project.pbxproj +++ b/Stats.xcodeproj/project.pbxproj @@ -2875,7 +2875,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 11.5; - MARKETING_VERSION = 2.12.7; + MARKETING_VERSION = 2.12.8; OTHER_LDFLAGS = ""; PRODUCT_BUNDLE_IDENTIFIER = eu.exelban.Stats; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -2912,7 +2912,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 11.5; - MARKETING_VERSION = 2.12.7; + MARKETING_VERSION = 2.12.8; OTHER_LDFLAGS = ""; PRODUCT_BUNDLE_IDENTIFIER = eu.exelban.Stats; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/Stats/Supporting Files/Info.plist b/Stats/Supporting Files/Info.plist index a4d7f582..73775ef3 100755 --- a/Stats/Supporting Files/Info.plist +++ b/Stats/Supporting Files/Info.plist @@ -17,7 +17,7 @@ CFBundleShortVersionString $(MARKETING_VERSION) CFBundleVersion - 781 + 782 Description Simple macOS system monitor in your menu bar LSApplicationCategoryType diff --git a/Widgets/Supporting Files/Info.plist b/Widgets/Supporting Files/Info.plist index 31a48b94..a0dad9c7 100644 --- a/Widgets/Supporting Files/Info.plist +++ b/Widgets/Supporting Files/Info.plist @@ -11,9 +11,9 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleShortVersionString - 2.12.7 + 2.12.8 CFBundleVersion - 781 + 782 NSExtension NSExtensionPointIdentifier