From 68f42b7569f1ab039e3938d956ccaa8980f8b335 Mon Sep 17 00:00:00 2001 From: piotr Date: Thu, 28 Nov 2024 00:46:10 +0100 Subject: [PATCH] disallow userDirButton parent selection --- uicomponents.go | 1 + 1 file changed, 1 insertion(+) diff --git a/uicomponents.go b/uicomponents.go index 64edb95..4545c51 100644 --- a/uicomponents.go +++ b/uicomponents.go @@ -475,6 +475,7 @@ func searchUserDir(dir string) { if len(fileSearchResults) > 0 { btn := setUpUserDirButton(fmt.Sprintf("folder-%s", dir), "", dir, userDirsMap) fileSearchResultFlowBox.Add(btn) + btn.Parent().(*gtk.FlowBoxChild).SetCanFocus(false) for _, path := range fileSearchResults { log.Debugf("Path: %s", path)