remove old calls

This commit is contained in:
Aaron Bieber 2023-09-05 06:34:33 -06:00
parent a143ad3d02
commit d048d84aa7
No known key found for this signature in database

View File

@ -6,7 +6,6 @@ import (
"encoding/json" "encoding/json"
"encoding/xml" "encoding/xml"
"fmt" "fmt"
"io/ioutil"
"log" "log"
"net/http" "net/http"
"os" "os"
@ -295,7 +294,7 @@ func (x *xinStatus) Log(s string) {
} }
func (c *Config) Load(file string) error { func (c *Config) Load(file string) error {
data, err := ioutil.ReadFile(file) data, err := os.ReadFile(file)
if err != nil { if err != nil {
return err return err
} }
@ -312,7 +311,7 @@ func (s *Status) ToTable() *widget.Table {
// CreateCell // CreateCell
func() fyne.CanvasObject { func() fyne.CanvasObject {
//ct := container.NewScroll(container.NewMax(widget.NewLabel(""))) //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("")) //ct := container.NewMax(widget.NewLabel(""))
return ct return ct
}, },
@ -519,8 +518,8 @@ func main() {
w.SetContent(container.NewAppTabs( w.SetContent(container.NewAppTabs(
container.NewTabItem("Hosts", tabs), container.NewTabItem("Hosts", tabs),
container.NewTabItem("Config", container.NewMax(widget.NewCard("Config", "", nil))), container.NewTabItem("Config", container.NewStack(widget.NewCard("Config", "", nil))),
container.NewTabItem("Logs", container.NewMax(status.log)), container.NewTabItem("Logs", container.NewStack(status.log)),
)) ))
w.SetCloseIntercept(func() { w.SetCloseIntercept(func() {
w.Hide() w.Hide()