mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2025-12-12 07:58:51 +01:00
bug fix
This commit is contained in:
parent
19eb2f5701
commit
f033293021
@ -309,13 +309,6 @@ func (self *AboutPage) Init() {
|
|||||||
|
|
||||||
self.Icons["bg"] = bgpng
|
self.Icons["bg"] = bgpng
|
||||||
|
|
||||||
self.CpuInfo()
|
|
||||||
self.MemInfo()
|
|
||||||
self.CpuMhz()
|
|
||||||
self.Uname()
|
|
||||||
|
|
||||||
self.GenList()
|
|
||||||
|
|
||||||
self.Scroller = UI.NewListScroller()
|
self.Scroller = UI.NewListScroller()
|
||||||
|
|
||||||
self.Scroller.Parent = self
|
self.Scroller.Parent = self
|
||||||
@ -347,6 +340,12 @@ func (self *AboutPage) OnLoadCb() {
|
|||||||
self.Scrolled = 0
|
self.Scrolled = 0
|
||||||
self.PosY = 0
|
self.PosY = 0
|
||||||
self.DrawOnce = false
|
self.DrawOnce = false
|
||||||
|
self.CpuInfo()
|
||||||
|
self.MemInfo()
|
||||||
|
self.CpuMhz()
|
||||||
|
self.Uname()
|
||||||
|
|
||||||
|
self.GenList()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *AboutPage) OnReturnBackCb() {
|
func (self *AboutPage) OnReturnBackCb() {
|
||||||
|
|||||||
6
main.go
6
main.go
@ -10,7 +10,7 @@ import (
|
|||||||
"runtime"
|
"runtime"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
//"syscall"
|
"syscall"
|
||||||
//"encoding/json"
|
//"encoding/json"
|
||||||
"github.com/veandco/go-sdl2/sdl"
|
"github.com/veandco/go-sdl2/sdl"
|
||||||
gotime "time"
|
gotime "time"
|
||||||
@ -260,7 +260,7 @@ func PreparationInAdv() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func release_self_fds() {
|
func release_self_fds() {
|
||||||
/*
|
|
||||||
fds_flags := []string{"pipe", "socket:", ".ttf"}
|
fds_flags := []string{"pipe", "socket:", ".ttf"}
|
||||||
file_paths, err := filepath.Glob("/proc/self/fd/*")
|
file_paths, err := filepath.Glob("/proc/self/fd/*")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -289,7 +289,7 @@ func release_self_fds() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func run() int {
|
func run() int {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user