diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-02 21:30:39 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 19:34:32 +1000 |
commit | 69e9f6d29da5be2d6250444ee46b05c81d668d8e (patch) | |
tree | 9293828c293d715101b6a9e03da11bbf4017be6b /pkg/gui/errors.go | |
parent | 0b424370524cbc95a5526545f17543a41badcab1 (diff) |
use suspense rather than close the gui when switching to a subprocess
Diffstat (limited to 'pkg/gui/errors.go')
-rw-r--r-- | pkg/gui/errors.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/pkg/gui/errors.go b/pkg/gui/errors.go index d8aa7530d..e0f37d3ea 100644 --- a/pkg/gui/errors.go +++ b/pkg/gui/errors.go @@ -5,7 +5,6 @@ import "github.com/go-errors/errors" // SentinelErrors are the errors that have special meaning and need to be checked // by calling functions. The less of these, the better type SentinelErrors struct { - ErrSubProcess error ErrNoFiles error ErrSwitchRepo error ErrRestart error @@ -25,7 +24,6 @@ const UNKNOWN_VIEW_ERROR_MSG = "unknown view" // localising things in the code. func (gui *Gui) GenerateSentinelErrors() { gui.Errors = SentinelErrors{ - ErrSubProcess: errors.New(gui.Tr.RunningSubprocess), ErrNoFiles: errors.New(gui.Tr.NoChangedFiles), ErrSwitchRepo: errors.New("switching repo"), ErrRestart: errors.New("restarting"), @@ -34,7 +32,6 @@ func (gui *Gui) GenerateSentinelErrors() { func (gui *Gui) sentinelErrorsArr() []error { return []error{ - gui.Errors.ErrSubProcess, gui.Errors.ErrNoFiles, gui.Errors.ErrSwitchRepo, gui.Errors.ErrRestart, |