mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: reverted enabling macOS widget updates since there is still a problem with chronod (#2733)
This commit is contained in:
@@ -234,6 +234,7 @@ public class CPU: Module {
|
||||
}
|
||||
|
||||
if #available(macOS 11.0, *) {
|
||||
if #unavailable(macOS 26.0) {
|
||||
guard let blobData = try? JSONEncoder().encode(value) else { return }
|
||||
self.userDefaults?.set(blobData, forKey: "CPU@LoadReader")
|
||||
WidgetCenter.shared.reloadTimelines(ofKind: CPU_entry.kind)
|
||||
@@ -241,3 +242,4 @@ public class CPU: Module {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -330,12 +330,14 @@ public class Disk: Module {
|
||||
}
|
||||
|
||||
if #available(macOS 11.0, *) {
|
||||
if #unavailable(macOS 26.0) {
|
||||
guard let blobData = try? JSONEncoder().encode(d) else { return }
|
||||
self.userDefaults?.set(blobData, forKey: "Disk@CapacityReader")
|
||||
WidgetCenter.shared.reloadTimelines(ofKind: Disk_entry.kind)
|
||||
WidgetCenter.shared.reloadTimelines(ofKind: "UnitedWidget")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func activityCallback(_ value: Disks) {
|
||||
guard self.enabled else { return }
|
||||
|
||||
@@ -192,6 +192,7 @@ public class GPU: Module {
|
||||
}
|
||||
|
||||
if #available(macOS 11.0, *) {
|
||||
if #unavailable(macOS 26.0) {
|
||||
guard let blobData = try? JSONEncoder().encode(selectedGPU) else { return }
|
||||
self.userDefaults?.set(blobData, forKey: "GPU@InfoReader")
|
||||
WidgetCenter.shared.reloadTimelines(ofKind: GPU_entry.kind)
|
||||
@@ -199,3 +200,4 @@ public class GPU: Module {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -326,11 +326,13 @@ public class Network: Module {
|
||||
}
|
||||
|
||||
if #available(macOS 11.0, *) {
|
||||
if #unavailable(macOS 26.0) {
|
||||
guard let blobData = try? JSONEncoder().encode(raw) else { return }
|
||||
self.userDefaults?.set(blobData, forKey: "Network@UsageReader")
|
||||
WidgetCenter.shared.reloadTimelines(ofKind: Network_entry.kind)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func connectivityCallback(_ raw: Network_Connectivity?) {
|
||||
guard let value = raw, self.enabled else { return }
|
||||
|
||||
@@ -472,7 +472,7 @@ internal class Popup: PopupWrapper {
|
||||
self.recalculateHeight()
|
||||
}
|
||||
var ip = addr
|
||||
if let cc = value.raddr.countryCode {
|
||||
if let cc = value.raddr.countryCode, !cc.isEmpty {
|
||||
ip += " (\(cc))"
|
||||
}
|
||||
if self.publicIPv4Field?.stringValue != ip {
|
||||
|
||||
@@ -233,6 +233,7 @@ public class RAM: Module {
|
||||
}
|
||||
|
||||
if #available(macOS 11.0, *) {
|
||||
if #unavailable(macOS 26.0) {
|
||||
guard let blobData = try? JSONEncoder().encode(value) else { return }
|
||||
self.userDefaults?.set(blobData, forKey: "RAM@UsageReader")
|
||||
WidgetCenter.shared.reloadTimelines(ofKind: RAM_entry.kind)
|
||||
@@ -240,3 +241,4 @@ public class RAM: Module {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2871,7 +2871,7 @@
|
||||
"@executable_path/../Frameworks",
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.15;
|
||||
MARKETING_VERSION = 2.11.60;
|
||||
MARKETING_VERSION = 2.11.61;
|
||||
OTHER_LDFLAGS = "";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = eu.exelban.Stats;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
@@ -2908,7 +2908,7 @@
|
||||
"@executable_path/../Frameworks",
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.15;
|
||||
MARKETING_VERSION = 2.11.60;
|
||||
MARKETING_VERSION = 2.11.61;
|
||||
OTHER_LDFLAGS = "";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = eu.exelban.Stats;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>$(MARKETING_VERSION)</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>741</string>
|
||||
<string>742</string>
|
||||
<key>Description</key>
|
||||
<string>Simple macOS system monitor in your menu bar</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>2.11.60</string>
|
||||
<string>2.11.61</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>741</string>
|
||||
<string>742</string>
|
||||
<key>NSExtension</key>
|
||||
<dict>
|
||||
<key>NSExtensionPointIdentifier</key>
|
||||
|
||||
Reference in New Issue
Block a user