fix: save value option state in the Speed widget (#242)

This commit is contained in:
Serhiy Mytrovtsiy
2020-12-24 16:19:55 +01:00
parent 55b432dbb3
commit eef4b1b1c2

View File

@@ -250,7 +250,7 @@ public class SpeedWidget: Widget {
state = sender is NSButton ? (sender as! NSButton).state: nil
}
self.valueState = state! == .on ? true : false
self.store?.pointee.set(key: "\(self.title)_\(self.type.rawValue)_\(self.type.rawValue)_value", value: self.valueState)
self.store?.pointee.set(key: "\(self.title)_\(self.type.rawValue)_value", value: self.valueState)
self.display()
if !self.valueState && self.icon == .none {