apps/gophers: go back on CommandBack

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-04-02 21:06:30 +02:00
parent fc55c6ee5c
commit 962736cbbf
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ module gioui.org/apps
go 1.12
require (
gioui.org/ui v0.0.0-20190402175437-ed2590e30e1d
gioui.org/ui v0.0.0-20190402190448-fc55c6ee5c2f
github.com/google/go-github/v24 v24.0.1
golang.org/x/exp v0.0.0-20190321205749-f0864edee7f3
golang.org/x/image v0.0.0-20190321063152-3fc05d484e9f
+8
View File
@@ -185,6 +185,14 @@ func (a *App) run() error {
}
}
case app.ChangeStage:
case *app.Command:
switch e.Type {
case app.CommandBack:
if a.selectedUser != nil {
a.selectedUser = nil
e.Cancel = true
}
}
case app.Draw:
a.cfg = e.Config
a.faces.Cfg = a.cfg