fix: fixed BatteryWidget misspelling

This commit is contained in:
Serhiy Mytrovtsiy
2023-02-21 20:40:18 +01:00
parent 7115ff4ad8
commit 03c30606cf
3 changed files with 5 additions and 5 deletions

View File

@@ -12,7 +12,7 @@
import Cocoa
public class BatterykWidget: WidgetWrapper {
public class BatteryWidget: WidgetWrapper {
private var additional: String = "none"
private var timeFormat: String = "short"
private var iconState: Bool = true

View File

@@ -55,8 +55,8 @@ public enum widget_t: String {
preview = SpeedWidget(title: module, config: widgetConfig, preview: true)
item = SpeedWidget(title: module, config: widgetConfig, preview: false)
case .battery:
preview = BatterykWidget(title: module, config: widgetConfig, preview: true)
item = BatterykWidget(title: module, config: widgetConfig, preview: false)
preview = BatteryWidget(title: module, config: widgetConfig, preview: true)
item = BatteryWidget(title: module, config: widgetConfig, preview: false)
case .sensors:
preview = SensorsWidget(title: module, config: widgetConfig, preview: true)
item = SensorsWidget(title: module, config: widgetConfig, preview: false)
@@ -97,7 +97,7 @@ public enum widget_t: String {
}
case is MemoryWidget:
width = view.bounds.width + 8 + Constants.Widget.spacing*2
case is BatterykWidget:
case is BatteryWidget:
width = view.bounds.width - 3
default: width = view.bounds.width
}

View File

@@ -132,7 +132,7 @@ public class Battery: Module {
case let widget as BarChart:
widget.setValue([[ColorValue(value.level)]])
widget.setColorZones((0.15, 0.3))
case let widget as BatterykWidget:
case let widget as BatteryWidget:
widget.setValue(
percentage: value.level,
ACStatus: value.powerSource != "Battery Power",