This commit is contained in:
cuu 2023-01-07 12:51:26 +00:00
parent 19eb2f5701
commit f033293021
2 changed files with 9 additions and 10 deletions

View File

@ -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() {

View File

@ -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 {