diff options
author | Daniel Milde <daniel@milde.cz> | 2024-02-13 23:42:15 +0100 |
---|---|---|
committer | Daniel Milde <daniel@milde.cz> | 2024-02-13 23:47:48 +0100 |
commit | efa7e46581b476e0811c09baa60a0734f581c94a (patch) | |
tree | 94b94ef5c6f0c3b814bd8437892da865778593f4 | |
parent | 6407b175a6d9693931e159769292634d36513b15 (diff) |
fix: Enter key properly working when reading analysis from file
-rw-r--r-- | tui/actions.go | 1 | ||||
-rw-r--r-- | tui/tui.go | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/tui/actions.go b/tui/actions.go index 9926734..ad3944e 100644 --- a/tui/actions.go +++ b/tui/actions.go @@ -55,7 +55,6 @@ func (ui *UI) AnalyzePath(path string, parentDir fs.Item) error { AddItem(nil, 0, 1, false) ui.pages.AddPage("progress", flex, true, true) - ui.table.SetSelectedFunc(ui.fileItemSelected) go ui.updateProgress() @@ -134,6 +134,7 @@ func CreateUI( ui.table = tview.NewTable().SetSelectable(true, false) ui.table.SetBackgroundColor(tcell.ColorDefault) + ui.table.SetSelectedFunc(ui.fileItemSelected) if ui.UseColors { |