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