diff --git a/bin/nwg-drawer b/bin/nwg-drawer index 6a19a5e..cc88955 100755 Binary files a/bin/nwg-drawer and b/bin/nwg-drawer differ diff --git a/main.go b/main.go index 4df7e8f..eb9a65b 100644 --- a/main.go +++ b/main.go @@ -19,7 +19,7 @@ import ( "github.com/gotk3/gotk3/gtk" ) -const version = "0.0.1" +const version = "0.0.2" var ( appDirs []string diff --git a/uicomponents.go b/uicomponents.go index cebc933..1f05f40 100644 --- a/uicomponents.go +++ b/uicomponents.go @@ -314,14 +314,11 @@ func setUpSearchEntry() *gtk.SearchEntry { for key := range userDirsMap { if key != "home" { fileSearchResults = nil - if len(fileSearchResults) == 0 { - fileSearchResultFlowBox.Show() - } searchUserDir(key) } } if fileSearchResultFlowBox.GetChildren().Length() == 0 { - fileSearchResultFlowBox.Hide() + fileSearchResultWrapper.Hide() statusLabel.SetText("0 results") } } else { @@ -335,6 +332,7 @@ func setUpSearchEntry() *gtk.SearchEntry { fileSearchResultFlowBox.Destroy() } appFlowBox = setUpAppsFlowBox(nil, "") + fileSearchResultWrapper.Hide() } }) searchEntry.Connect("focus-in-event", func() {