summaryrefslogtreecommitdiffstats
path: root/pkg/gui/gui.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r--pkg/gui/gui.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go
index fc24bbd6b..530c00383 100644
--- a/pkg/gui/gui.go
+++ b/pkg/gui/gui.go
@@ -15,7 +15,6 @@ import (
"strings"
"time"
- "github.com/fsnotify/fsnotify"
"github.com/go-errors/errors"
// "strings"
@@ -82,7 +81,7 @@ type Gui struct {
statusManager *statusManager
credentials credentials
waitForIntro sync.WaitGroup
- fileWatcher *fsnotify.Watcher
+ fileWatcher *fileWatcher
}
// for now the staging panel state, unlike the other panel states, is going to be
@@ -840,7 +839,7 @@ func (gui *Gui) RunWithSubprocesses() error {
}
}
- gui.fileWatcher.Close()
+ gui.fileWatcher.Watcher.Close()
break
} else if err == gui.Errors.ErrSwitchRepo {