prepare loader ui

This commit is contained in:
Ilia Denisov
2026-03-15 20:40:25 +02:00
parent 1ea03495f6
commit fbcf4cef99
8 changed files with 191 additions and 57 deletions
+1 -7
View File
@@ -1,12 +1,10 @@
package main
import (
"context"
"errors"
"fmt"
"galaxy/client"
"os"
"os/signal"
"fyne.io/fyne/v2/app"
)
@@ -25,11 +23,7 @@ func main() {
}
}()
app := app.New()
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt)
defer cancel()
c, err := client.NewClient(ctx, nil, nil, app)
c, err := client.NewClient(nil, nil, app)
if err != nil {
return
}