diff options
Diffstat (limited to 'pkg/gui/updates.go')
-rw-r--r-- | pkg/gui/updates.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pkg/gui/updates.go b/pkg/gui/updates.go index 9b3b6771c..cce723c4f 100644 --- a/pkg/gui/updates.go +++ b/pkg/gui/updates.go @@ -52,10 +52,14 @@ func (gui *Gui) startUpdating(newVersion string) { func (gui *Gui) onUpdateFinish(statusId int, err error) error { gui.State.Updating = false gui.statusManager.removeStatus(statusId) - gui.renderString(gui.Views.AppStatus, "") - if err != nil { - return gui.createErrorPanel("Update failed: " + err.Error()) - } + gui.OnUIThread(func() error { + _ = gui.renderString(gui.Views.AppStatus, "") + if err != nil { + return gui.createErrorPanel("Update failed: " + err.Error()) + } + return nil + }) + return nil } |