rescaled icon, fix app exit
This commit is contained in:
parent
3c87663d02
commit
7ddec1b09d
BIN
icon.png
BIN
icon.png
Binary file not shown.
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 30 KiB |
|
@ -93,15 +93,14 @@ func (g *GUI) run(w *app.Window) error {
|
||||||
case e := <-w.Events():
|
case e := <-w.Events():
|
||||||
switch e := e.(type) {
|
switch e := e.(type) {
|
||||||
case system.DestroyEvent:
|
case system.DestroyEvent:
|
||||||
|
logrus.Info("Closing")
|
||||||
|
g.cancel()
|
||||||
|
g.router.Wg.Wait()
|
||||||
return e.Err
|
return e.Err
|
||||||
case system.FrameEvent:
|
case system.FrameEvent:
|
||||||
gtx := layout.NewContext(&ops, e)
|
gtx := layout.NewContext(&ops, e)
|
||||||
g.router.Layout(gtx, g.router.Theme)
|
g.router.Layout(gtx, g.router.Theme)
|
||||||
e.Frame(gtx.Ops)
|
e.Frame(gtx.Ops)
|
||||||
case *system.DestroyEvent:
|
|
||||||
g.cancel()
|
|
||||||
g.router.Wg.Wait()
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
case <-g.router.Ctx.Done():
|
case <-g.router.Ctx.Done():
|
||||||
logrus.Info("Closing")
|
logrus.Info("Closing")
|
||||||
|
|
Loading…
Reference in New Issue