Skip to content

Commit

Permalink
Merge pull request nwg-piotr#16 from nwg-piotr/fixnofs
Browse files Browse the repository at this point in the history
fix crash on a category button click while file search turned off (`-nofs`)
  • Loading branch information
nwg-piotr authored Aug 26, 2021
2 parents 4818dc3 + a7968d8 commit 9d0c4d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Binary file modified bin/nwg-drawer
Binary file not shown.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/gotk3/gotk3/gtk"
)

const version = "0.1.7"
const version = "0.1.8"

var (
appDirs []string
Expand Down
4 changes: 3 additions & 1 deletion uicomponents.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
})
}
}
Expand Down

0 comments on commit 9d0c4d2

Please sign in to comment.