From 810adab9573e0190c27073e85b39246d51a56a27 Mon Sep 17 00:00:00 2001 From: Jamie Brynes Date: Thu, 16 Jan 2020 00:30:53 +0000 Subject: [PATCH] handle case where file watcher is disabled --- pkg/gui/gui.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 {