Revert "Watch new directory when created"
This reverts commit 6856804313.
This commit is contained in:
1 file changed
+1
-4
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user