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():
|
||||
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")
|
||||
|
|
Loading…
Reference in New Issue