From d048d84aa7515f47a40210280daef8ea5462e0a5 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Tue, 5 Sep 2023 06:34:33 -0600 Subject: [PATCH] remove old calls --- main.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index d705b13..31be60b 100644 --- a/main.go +++ b/main.go @@ -6,7 +6,6 @@ import ( "encoding/json" "encoding/xml" "fmt" - "io/ioutil" "log" "net/http" "os" @@ -295,7 +294,7 @@ func (x *xinStatus) Log(s string) { } func (c *Config) Load(file string) error { - data, err := ioutil.ReadFile(file) + data, err := os.ReadFile(file) if err != nil { return err } @@ -312,7 +311,7 @@ func (s *Status) ToTable() *widget.Table { // CreateCell func() fyne.CanvasObject { //ct := container.NewScroll(container.NewMax(widget.NewLabel(""))) - ct := container.NewMax(container.NewVScroll(widget.NewLabel(""))) + ct := container.NewStack(container.NewVScroll(widget.NewLabel(""))) //ct := container.NewMax(widget.NewLabel("")) return ct }, @@ -519,8 +518,8 @@ func main() { w.SetContent(container.NewAppTabs( container.NewTabItem("Hosts", tabs), - container.NewTabItem("Config", container.NewMax(widget.NewCard("Config", "", nil))), - container.NewTabItem("Logs", container.NewMax(status.log)), + container.NewTabItem("Config", container.NewStack(widget.NewCard("Config", "", nil))), + container.NewTabItem("Logs", container.NewStack(status.log)), )) w.SetCloseIntercept(func() { w.Hide()