Merge pull request #140 from tockins/dev

Bug fix
This commit is contained in:
Alessio Pracchia 2017-12-14 23:38:59 +01:00 committed by GitHub
commit 3f82faaa01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,5 @@
//go:generate go-bindata -pkg=realize -o=realize/bindata.go realize/assets/...
package main
import (

View File

@ -190,7 +190,6 @@ func (p *Project) Reload(path string, stop <-chan bool) {
if err != nil {
p.Err(err)
}
p.tools(stop, path, fi)
// path dir
if !fi.IsDir() {
path := filepath.Dir(path)
@ -198,8 +197,8 @@ func (p *Project) Reload(path string, stop <-chan bool) {
if err != nil {
p.Err(err)
}
p.tools(stop, path, fi)
}
p.tools(stop, path, fi)
}
// Prevent fake events on polling startup
p.init = true