Revert "Watch new directory when created"

This reverts commit 6856804313.
This commit is contained in:
Joe Lim committed 2024-04-22 11:45:46 +10:00
1 parent 6856804313
commit 1c29f34981
1 file changed
+1 -4
+1 -4
View File
@@ -645,11 +645,8 @@ func (app *app) updateFile(path string, add bool) {
} }
if add { if add {
if stat, err := os.Stat(path); err == nil { if _, err := os.Stat(path); err == nil {
allFiles = append(allFiles, newFile(path)) allFiles = append(allFiles, newFile(path))
if stat.IsDir() {
app.nav.setWatches()
}
} }
} }
dir.allFiles = allFiles dir.allFiles = allFiles