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:
BIN
bin/nwg-drawer
BIN
bin/nwg-drawer
Binary file not shown.
2
main.go
2
main.go
@@ -19,7 +19,7 @@ import (
|
||||
"github.com/gotk3/gotk3/gtk"
|
||||
)
|
||||
|
||||
const version = "0.1.7"
|
||||
const version = "0.1.8"
|
||||
|
||||
var (
|
||||
appDirs []string
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user