Skip to content

Instantly share code, notes, and snippets.

@rubiojr
Last active February 14, 2021 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubiojr/cfec3ed235918466b6ea277be41b61bb to your computer and use it in GitHub Desktop.
Save rubiojr/cfec3ed235918466b6ea277be41b61bb to your computer and use it in GitHub Desktop.
diff --git a/internal/ui/inprogresslist/inprogresslist.go b/internal/ui/inprogresslist/inprogresslist.go
index d05f3b4..e25a0c8 100644
--- a/internal/ui/inprogresslist/inprogresslist.go
+++ b/internal/ui/inprogresslist/inprogresslist.go
@@ -57,7 +57,7 @@ func (i *InProgressList) isShown(tree *gtk.TreeView) {
func (i *InProgressList) updateFileList() {
//TODO: use leveldb to speed things up without walking the filesystem
- i.listBox.BindModel(nil, nil, nil)
+ i.listBox.BindModel(nil, nil)
for _, doc := range downloader.Instance().DownloadsInProgress() {
i.addFileRow(doc.Name)
diff --git a/internal/ui/tagger/tagger.go b/internal/ui/tagger/tagger.go
index 025ace2..6041e4a 100644
--- a/internal/ui/tagger/tagger.go
+++ b/internal/ui/tagger/tagger.go
@@ -98,7 +98,7 @@ func (t *Tagger) removeSelected() {
func (t *Tagger) saveTags() {
var tl []tags.Tag
- t.listStore.ForEach(func(model *gtk.TreeModel, path *gtk.TreePath, iter *gtk.TreeIter, userdata ...interface{}) bool {
+ t.listStore.ForEach(func(model *gtk.TreeModel, path *gtk.TreePath, iter *gtk.TreeIter) bool {
value, _ := t.listStore.GetValue(iter, 0)
tname, _ := value.GetString()
tag := tags.Tag{Name: tname}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment