fix: added self relation to the CPU widgets callback (#2492)

This commit is contained in:
Serhiy Mytrovtsiy
2025-04-11 18:53:05 +02:00
parent 605156d323
commit 0385e83673
3 changed files with 3 additions and 3 deletions

View File

@@ -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)

View File

@@ -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>

View File

@@ -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>