From eef4b1b1c2fc0b494fb5d07cf1c0868c68e86aff Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Thu, 24 Dec 2020 16:19:55 +0100 Subject: [PATCH] fix: save value option state in the Speed widget (#242) --- ModuleKit/Widgets/Speed.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ModuleKit/Widgets/Speed.swift b/ModuleKit/Widgets/Speed.swift index e2c9b616..bfdf1abb 100644 --- a/ModuleKit/Widgets/Speed.swift +++ b/ModuleKit/Widgets/Speed.swift @@ -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 {