Skip to content

Commit 0385e83

Browse files
committed
fix: added self relation to the CPU widgets callback (#2492)
1 parent 605156d commit 0385e83

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Modules/CPU/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public class CPU: Module {
174174
self.portalView.callback(value)
175175
self.notificationsView.loadCallback(value)
176176

177-
self.menuBar.widgets.filter{ $0.isActive }.forEach { (w: SWidget) in
177+
self.menuBar.widgets.filter{ $0.isActive }.forEach { [self] (w: SWidget) in
178178
switch w.item {
179179
case let widget as Mini: widget.setValue(value.totalUsage)
180180
case let widget as LineChart: widget.setValue(value.totalUsage)

Stats/Supporting Files/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundleShortVersionString</key>
1818
<string>$(MARKETING_VERSION)</string>
1919
<key>CFBundleVersion</key>
20-
<string>692</string>
20+
<string>694</string>
2121
<key>Description</key>
2222
<string>Simple macOS system monitor in your menu bar</string>
2323
<key>LSApplicationCategoryType</key>

Widgets/Supporting Files/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<key>CFBundleShortVersionString</key>
1414
<string>2.11.39</string>
1515
<key>CFBundleVersion</key>
16-
<string>692</string>
16+
<string>694</string>
1717
<key>NSExtension</key>
1818
<dict>
1919
<key>NSExtensionPointIdentifier</key>

0 commit comments

Comments
 (0)