mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-19 18:32:49 +01:00
CheckBattery
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user