mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
apps/gophers: add explicit redraws
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-20190712115827-46850653ef21
|
gioui.org/ui v0.0.0-20190712120518-326f78c3413a
|
||||||
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-20190627132806-fd42eb6b336f
|
golang.org/x/exp v0.0.0-20190627132806-fd42eb6b336f
|
||||||
golang.org/x/image v0.0.0-20190703141733-d6a02ce849c9
|
golang.org/x/image v0.0.0-20190703141733-d6a02ce849c9
|
||||||
|
|||||||
@@ -201,6 +201,7 @@ func (a *App) run() error {
|
|||||||
case 'P':
|
case 'P':
|
||||||
if e.Modifiers.Contain(key.ModCommand) {
|
if e.Modifiers.Contain(key.ModCommand) {
|
||||||
a.w.Profiling = !a.w.Profiling
|
a.w.Profiling = !a.w.Profiling
|
||||||
|
a.w.Redraw()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -227,6 +228,7 @@ func (a *App) run() error {
|
|||||||
if a.selectedUser != nil {
|
if a.selectedUser != nil {
|
||||||
a.selectedUser = nil
|
a.selectedUser = nil
|
||||||
e.Cancel = true
|
e.Cancel = true
|
||||||
|
a.w.Redraw()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case app.DrawEvent:
|
case app.DrawEvent:
|
||||||
|
|||||||
Reference in New Issue
Block a user