remove all init() in UI, move into UI.Init()

This commit is contained in:
cuu
2019-01-07 22:09:53 +08:00
parent 003bb8f598
commit 4736ab131d
4 changed files with 20 additions and 8 deletions

View File

@@ -218,6 +218,7 @@ func CheckBattery() int {
if FileExists(sysgo.Battery) == false {
return -1
}
batinfos,err := ReadLines(sysgo.Battery)
if err == nil {
for _,v := range batinfos {
@@ -236,9 +237,13 @@ func CheckBattery() int {
}else{
fmt.Println(err)
}
return 0
return 0
}
func System(cmd string) string {
ret := ""
out,err := exec.Command("bash","-c",cmd).Output()