client refactor

This commit is contained in:
Ilia Denisov
2026-03-09 13:26:17 +02:00
committed by GitHub
parent ac35360d60
commit bb2bb899de
10 changed files with 339 additions and 295 deletions
+7 -8
View File
@@ -5,21 +5,20 @@ import (
"fyne.io/fyne/v2/app"
)
type client struct {
type ui struct {
app fyne.App
window fyne.Window
}
func NewClient() *client {
c := &client{}
func NewUI() *ui {
c := &ui{}
c.app = app.New()
c.window = c.app.NewWindow("Galaxy+")
editor := NewEditor()
editor.BuildUI(c.window)
c.window = c.app.NewWindow("Galaxy Plus")
client := NewClient()
client.BuildUI(c.window)
return c
}
func (c *client) Run() {
func (c *ui) Run() {
c.window.ShowAndRun()
}