mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: save value option state in the Speed widget (#242)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user