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 {