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:
@@ -79,11 +79,14 @@ func Init() {
|
||||
keyname := fmt.Sprintf("notosanscjk%d",i)
|
||||
Fonts[keyname] = font.Font(fonts_path["notocjk"],i)
|
||||
}
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
//
|
||||
keys_def_init()
|
||||
|
||||
//// global variables Init
|
||||
if MyIconPool == nil {
|
||||
MyIconPool = NewIconPool()
|
||||
MyIconPool.Init()
|
||||
}
|
||||
if MyLangManager == nil {
|
||||
|
||||
@@ -94,5 +97,7 @@ func init() {
|
||||
if MySkinManager == nil {
|
||||
MySkinManager = NewSkinManager()
|
||||
MySkinManager.Init()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user