diff options
author | Jamie Brynes <jamiebrynes7@gmail.com> | 2020-01-16 00:30:53 +0000 |
---|---|---|
committer | Jamie Brynes <jamiebrynes7@gmail.com> | 2020-01-16 00:30:53 +0000 |
commit | 810adab9573e0190c27073e85b39246d51a56a27 (patch) | |
tree | 54c467dd55211a33eea2202380a28708931dd558 /pkg/gui/gui.go | |
parent | 83a3c9fc8d90ddafe6fb2e752d57af161b081d83 (diff) |
handle case where file watcher is disabled
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r-- | pkg/gui/gui.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 08242da53..45229974a 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -880,7 +880,9 @@ func (gui *Gui) RunWithSubprocesses() error { } } - gui.fileWatcher.Watcher.Close() + if !gui.fileWatcher.Disabled { + gui.fileWatcher.Watcher.Close() + } break } else if err == gui.Errors.ErrSwitchRepo { |