mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-20 02:42:50 +01:00
remove all init() in UI, move into UI.Init()
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user