From 660b4db91e5eca68a9eee2a83db6626752f3a2bf Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Tue, 1 Dec 2020 17:43:10 +0100 Subject: [PATCH] - mark CPU frequency reader as popup (#192) --- .gitignore | 1 + Modules/CPU/readers.swift | 5 +++++ Stats/Supporting Files/Info.plist | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 464ce3dc..8b1d1520 100644 --- a/.gitignore +++ b/.gitignore @@ -9,5 +9,6 @@ Stats.dmg Stats.app create-dmg dSYMs.zip +Stats.dmg.zip Cartfile.resolved \ No newline at end of file diff --git a/Modules/CPU/readers.swift b/Modules/CPU/readers.swift index 958aee32..83f7c9cb 100644 --- a/Modules/CPU/readers.swift +++ b/Modules/CPU/readers.swift @@ -265,6 +265,11 @@ public class FrequencyReader: Reader { private var sample: PGSample = 0 + override init() { + super.init() + self.popup = true + } + public override func setup() { let path: CFString = "/Library/Frameworks/IntelPowerGadget.framework" as CFString let bundleURL = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, path, CFURLPathStyle.cfurlposixPathStyle, true) diff --git a/Stats/Supporting Files/Info.plist b/Stats/Supporting Files/Info.plist index 99ea1e00..10fe8bd5 100755 --- a/Stats/Supporting Files/Info.plist +++ b/Stats/Supporting Files/Info.plist @@ -17,7 +17,7 @@ CFBundleShortVersionString $(MARKETING_VERSION) CFBundleVersion - $(CURRENT_PROJECT_VERSION) + 181 Description Simple macOS system monitor in your menu bar LSApplicationCategoryType