rescaled icon, fix app exit

This commit is contained in:
olebeck 2023-03-15 15:01:34 +01:00
parent 3c87663d02
commit 7ddec1b09d
2 changed files with 3 additions and 4 deletions

BIN
icon.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -93,15 +93,14 @@ func (g *GUI) run(w *app.Window) error {
case e := <-w.Events():
switch e := e.(type) {
case system.DestroyEvent:
logrus.Info("Closing")
g.cancel()
g.router.Wg.Wait()
return e.Err
case system.FrameEvent:
gtx := layout.NewContext(&ops, e)
g.router.Layout(gtx, g.router.Theme)
e.Frame(gtx.Ops)
case *system.DestroyEvent:
g.cancel()
g.router.Wg.Wait()
return nil
}
case <-g.router.Ctx.Done():
logrus.Info("Closing")