mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2025-12-12 07:58:51 +01:00
buf fix
This commit is contained in:
parent
5cb318cd56
commit
cb0b5eb293
@ -6,7 +6,7 @@ import (
|
||||
gotime "time"
|
||||
"strings"
|
||||
"path"
|
||||
|
||||
"path/filepath"
|
||||
//"encoding/json"
|
||||
|
||||
"github.com/veandco/go-sdl2/ttf"
|
||||
@ -22,11 +22,6 @@ import (
|
||||
"github.com/cuu/grab"
|
||||
)
|
||||
|
||||
type WareHouseIndex struct {
|
||||
List []map[string]string `json:"list"`
|
||||
}
|
||||
|
||||
|
||||
type ImageDownloadProcessPage struct {
|
||||
UI.Page
|
||||
|
||||
@ -100,7 +95,7 @@ func (self *ImageDownloadProcessPage) OnLoadCb() {
|
||||
|
||||
if len(local_dir) > 1 {
|
||||
menu_file := local_dir[1]
|
||||
local_menu_file := fmt.Sprintf("%s/aria2downloads%s",
|
||||
local_menu_file := fmt.Sprintf(aria2dl_folder,
|
||||
home_path,menu_file)
|
||||
|
||||
if UI.FileExists(local_menu_file) {
|
||||
@ -160,13 +155,13 @@ L:
|
||||
|
||||
if len(local_dir) > 1 {
|
||||
menu_file = local_dir[1]
|
||||
local_menu_file = fmt.Sprintf("%s/aria2downloads%s",
|
||||
local_menu_file = fmt.Sprintf(aria2dl_folder,
|
||||
home_path,menu_file)
|
||||
}
|
||||
|
||||
dl_file := path.Join("/tmp",filename)
|
||||
if UI.IsDirectory( path.Base(local_menu_file) ) == false {
|
||||
merr := os.MkdirAll( path.Base(local_menu_file), os.ModePerm)
|
||||
if UI.IsDirectory( filepath.Dir(local_menu_file) ) == false {
|
||||
merr := os.MkdirAll( filepath.Dir(local_menu_file), os.ModePerm)
|
||||
if merr != nil {
|
||||
panic(merr)
|
||||
}
|
||||
|
||||
@ -21,6 +21,10 @@ import (
|
||||
"github.com/cuu/grab"
|
||||
)
|
||||
|
||||
type WareHouseIndex struct {
|
||||
List []map[string]string `json:"list"`
|
||||
}
|
||||
|
||||
type LoadHousePage struct {
|
||||
UI.Page
|
||||
ListFontObj *ttf.Font
|
||||
|
||||
@ -373,7 +373,7 @@ func (self *WareHouse) Init() {
|
||||
self.Keyboard.FootMsg = [5]string{"Nav.","Add","ABC","Backspace","Enter"}
|
||||
self.Keyboard.Screen = self.Screen
|
||||
self.Keyboard.Init()
|
||||
self.Keyboard.SetPassword("github.com/cuu/warehouse")
|
||||
self.Keyboard.SetPassword("github.com/clockworkpi/warehouse")
|
||||
self.Keyboard.Caller = self
|
||||
|
||||
self.PreviewPage = NewImageDownloadProcessPage()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user