Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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