mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: added self relation to the CPU widgets callback (#2492)
This commit is contained in:
@@ -174,7 +174,7 @@ public class CPU: Module {
|
|||||||
self.portalView.callback(value)
|
self.portalView.callback(value)
|
||||||
self.notificationsView.loadCallback(value)
|
self.notificationsView.loadCallback(value)
|
||||||
|
|
||||||
self.menuBar.widgets.filter{ $0.isActive }.forEach { (w: SWidget) in
|
self.menuBar.widgets.filter{ $0.isActive }.forEach { [self] (w: SWidget) in
|
||||||
switch w.item {
|
switch w.item {
|
||||||
case let widget as Mini: widget.setValue(value.totalUsage)
|
case let widget as Mini: widget.setValue(value.totalUsage)
|
||||||
case let widget as LineChart: widget.setValue(value.totalUsage)
|
case let widget as LineChart: widget.setValue(value.totalUsage)
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>$(MARKETING_VERSION)</string>
|
<string>$(MARKETING_VERSION)</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>692</string>
|
<string>694</string>
|
||||||
<key>Description</key>
|
<key>Description</key>
|
||||||
<string>Simple macOS system monitor in your menu bar</string>
|
<string>Simple macOS system monitor in your menu bar</string>
|
||||||
<key>LSApplicationCategoryType</key>
|
<key>LSApplicationCategoryType</key>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>2.11.39</string>
|
<string>2.11.39</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>692</string>
|
<string>694</string>
|
||||||
<key>NSExtension</key>
|
<key>NSExtension</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>NSExtensionPointIdentifier</key>
|
<key>NSExtensionPointIdentifier</key>
|
||||||
|
|||||||
Reference in New Issue
Block a user