From 1c29f349812320f58ca60ae558ef2a56a90e6331 Mon Sep 17 00:00:00 2001 From: Joe Lim <50560759+joelim-work@users.noreply.github.com> Date: Mon, 22 Apr 2024 11:45:46 +1000 Subject: [PATCH] Revert "Watch new directory when created" This reverts commit 68568043136f7f379c81fb0e3583daf7023d4006. --- app.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app.go b/app.go index b9d0464e..0bf6cdc8 100644 --- a/app.go +++ b/app.go @@ -645,11 +645,8 @@ func (app *app) updateFile(path string, add bool) { } if add { - if stat, err := os.Stat(path); err == nil { + if _, err := os.Stat(path); err == nil { allFiles = append(allFiles, newFile(path)) - if stat.IsDir() { - app.nav.setWatches() - } } } dir.allFiles = allFiles