A few bug-fixes and maintenance tasks (#30)

- Fixed a bug which was not properly detecting whether MacOS was in light mode.
- Fixed a bug which was breaking filtering with the table-selection mode.
- Upgraded bubble-tea.
This commit is contained in:
Leon Mika 2022-10-04 13:01:53 +11:00 committed by GitHub
parent efdc7f9e25
commit f373a3313a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 90 additions and 33 deletions

View file

@ -7,7 +7,7 @@ type tableItem struct {
}
func (ti tableItem) FilterValue() string {
return ""
return ti.name
}
func (ti tableItem) Title() string {

View file

@ -64,6 +64,9 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}
}
if m.pendingSelection != nil {
m.listController = cc.Collect(m.listController.Update(msg)).(listController)
}
m.submodel = cc.Collect(m.submodel.Update(msg))
return m, cc.Cmd()
}