mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2025-12-12 16:08:52 +01:00
CheckBattery
This commit is contained in:
parent
a1a32ba626
commit
76e3da8be7
@ -215,6 +215,9 @@ func GetUid(path string) int {
|
||||
}
|
||||
|
||||
func CheckBattery() int {
|
||||
if UI.FileExists(sysgo.Battery) == false {
|
||||
return
|
||||
}
|
||||
batinfos,err := ReadLines(sysgo.Battery)
|
||||
if err == nil {
|
||||
for _,v := range batinfos {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user