fix: disable Battery high level notification by default

This commit is contained in:
Serhiy Mytrovtsiy
2021-02-28 13:03:46 +01:00
parent 000d36c89c
commit 8604b08af1
2 changed files with 2 additions and 2 deletions

View File

@@ -167,7 +167,7 @@ public class Battery: Module {
}
private func checkHighNotification(value: Battery_Usage) {
let level = self.store.pointee.string(key: "\(self.config.name)_highLevelNotification", defaultValue: "0.85")
let level = self.store.pointee.string(key: "\(self.config.name)_highLevelNotification", defaultValue: "Disabled")
if level == "Disabled" {
return
}

View File

@@ -32,7 +32,7 @@ internal class Settings: NSView, Settings_v {
}
private var highLevelNotification: String {
get {
return self.store.pointee.string(key: "\(self.title)_highLevelNotification", defaultValue: "0.85")
return self.store.pointee.string(key: "\(self.title)_highLevelNotification", defaultValue: "Disabled")
}
}
private var timeFormat: String = "short"