1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-05-15 22:26:40 +02:00

handle case where file watcher is disabled

This commit is contained in:
Jamie Brynes 2020-01-16 00:30:53 +00:00
parent 83a3c9fc8d
commit 810adab957

View File

@ -880,7 +880,9 @@ func (gui *Gui) RunWithSubprocesses() error {
} }
} }
if !gui.fileWatcher.Disabled {
gui.fileWatcher.Watcher.Close() gui.fileWatcher.Watcher.Close()
}
break break
} else if err == gui.Errors.ErrSwitchRepo { } else if err == gui.Errors.ErrSwitchRepo {