diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-04-18 10:05:52 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-04-18 10:10:30 +0200 |
commit | 9f8ae76189e61c0133ea6891ddcb30db09645b40 (patch) | |
tree | 4a5e0721e07aa0fa2ec2258c66da4d42bf7f9e1c /pkg | |
parent | 8a77e51576e70fe0d4d769df62df282f7259c3e6 (diff) |
Bump gocui
In Gui.onWorker we only make the minimum possible change to get things to
compile after the API-breaking change of the gocui update; we'll make this
cleaner later in this branch.
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/gui/gui.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 8a17bb2c2..67ae7f2ab 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -956,8 +956,13 @@ func (gui *Gui) onUIThread(f func() error) { }) } -func (gui *Gui) onWorker(f func(gocui.Task)) { - gui.g.OnWorker(f) +func (gui *Gui) onWorker(f func(t gocui.Task)) { + gui.g.OnWorker(func(t gocui.Task) error { + // Hack: adapt to the changed signature in the simplest possible way. + // We'll make this cleaner in subsequent commits in this branch. + f(t) + return nil + }) } func (gui *Gui) getWindowDimensions(informationStr string, appStatus string) map[string]boxlayout.Dimensions { |