diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-28 20:44:36 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-17 19:13:40 +1100 |
commit | a90b6efded49abcfa2516db794d7875b0396f558 (patch) | |
tree | ad9c3738830437064ada223f0978dab1d726b479 /pkg/gui/app_status_manager.go | |
parent | fa8571e1f4c349e401542285ea238acdbd9d17ec (diff) |
start refactoring gui
Diffstat (limited to 'pkg/gui/app_status_manager.go')
-rw-r--r-- | pkg/gui/app_status_manager.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/app_status_manager.go b/pkg/gui/app_status_manager.go index e625fcad2..825bb8801 100644 --- a/pkg/gui/app_status_manager.go +++ b/pkg/gui/app_status_manager.go @@ -106,8 +106,8 @@ func (gui *Gui) renderAppStatus() { }) } -// WithWaitingStatus wraps a function and shows a waiting status while the function is still executing -func (gui *Gui) WithWaitingStatus(message string, f func() error) error { +// withWaitingStatus wraps a function and shows a waiting status while the function is still executing +func (gui *Gui) withWaitingStatus(message string, f func() error) error { go utils.Safe(func() { id := gui.statusManager.addWaitingStatus(message) @@ -119,7 +119,7 @@ func (gui *Gui) WithWaitingStatus(message string, f func() error) error { if err := f(); err != nil { gui.OnUIThread(func() error { - return gui.surfaceError(err) + return gui.PopupHandler.Error(err) }) } }) |