diff options
| author | Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com> | 2018-12-13 02:12:03 +0300 |
|---|---|---|
| committer | Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com> | 2018-12-13 02:12:03 +0300 |
| commit | a4a29171fb11c98432ead8e72bc0948a549d9979 (patch) | |
| tree | 1525cc43a0a86e79a174b4b214cc2ad64e58aaaa /pkg/gui/mainview.go | |
| parent | implementing authentication for fetch operation (diff) | |
| download | gitbatch-a4a29171fb11c98432ead8e72bc0948a549d9979.tar.gz | |
login implementation stablized, some renaming, some refactoring and updated readme
Diffstat (limited to 'pkg/gui/mainview.go')
| -rw-r--r-- | pkg/gui/mainview.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/gui/mainview.go b/pkg/gui/mainview.go index fe8931b..389d66d 100644 --- a/pkg/gui/mainview.go +++ b/pkg/gui/mainview.go @@ -147,7 +147,8 @@ func (gui *Gui) removeFromQueue(entity *git.RepoEntity) error { // function does take its current state into account before adding it func (gui *Gui) markRepository(g *gocui.Gui, v *gocui.View) error { r := gui.getSelectedRepository() - if r.State == git.Available || r.State == git.Success { + // maybe, failed entities may be added to queue again + if r.State == git.Available || r.State == git.Success || r.State == git.Paused { if err := gui.addToQueue(r); err != nil { return err } |
