mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 01:15:35 +00:00
apps/gophers: go back on CommandBack
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ module gioui.org/apps
|
|||||||
go 1.12
|
go 1.12
|
||||||
|
|
||||||
require (
|
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
|
github.com/google/go-github/v24 v24.0.1
|
||||||
golang.org/x/exp v0.0.0-20190321205749-f0864edee7f3
|
golang.org/x/exp v0.0.0-20190321205749-f0864edee7f3
|
||||||
golang.org/x/image v0.0.0-20190321063152-3fc05d484e9f
|
golang.org/x/image v0.0.0-20190321063152-3fc05d484e9f
|
||||||
|
|||||||
@@ -185,6 +185,14 @@ func (a *App) run() error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
case app.ChangeStage:
|
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:
|
case app.Draw:
|
||||||
a.cfg = e.Config
|
a.cfg = e.Config
|
||||||
a.faces.Cfg = a.cfg
|
a.faces.Cfg = a.cfg
|
||||||
|
|||||||
Reference in New Issue
Block a user