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
+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