mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
fix: disable Battery high level notification by default
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user