Merge pull request #16 from nwg-piotr/fixnofs

fix crash on a category button click while file search turned off (`-nofs`)
This commit is contained in:
Piotr Miller
2021-08-27 01:33:01 +02:00
committed by GitHub
3 changed files with 4 additions and 2 deletions

Binary file not shown.

View File

@@ -19,7 +19,7 @@ import (
"github.com/gotk3/gotk3/gtk"
)
const version = "0.1.7"
const version = "0.1.8"
var (
appDirs []string

View File

@@ -146,7 +146,9 @@ func setUpCategoriesButtonBox() *gtk.EventBox {
w := b.GetAllocatedWidth()
b.SetImagePosition(gtk.POS_TOP)
b.SetSizeRequest(w, 0)
fileSearchResultWrapper.Hide()
if fileSearchResultWrapper != nil {
fileSearchResultWrapper.Hide()
}
})
}
}