show loader when filtering

pull/392/head
Jesse Duffield 2 years ago
parent 95cee378cb
commit c6d424e4a4

@ -87,19 +87,6 @@ func (gui *Gui) getMidSectionWeights() (int, int) {
}
func (gui *Gui) infoSectionChildren(informationStr string, appStatus string) []*boxlayout.Box {
if gui.State.Filter.active {
return []*boxlayout.Box{
{
Window: "filterPrefix",
Size: runewidth.StringWidth(gui.filterPrompt()),
},
{
Window: "filter",
Weight: 1,
},
}
}
result := []*boxlayout.Box{}
if len(appStatus) > 0 {
@ -111,6 +98,19 @@ func (gui *Gui) infoSectionChildren(informationStr string, appStatus string) []*
)
}
if gui.State.Filter.active {
return append(result, []*boxlayout.Box{
{
Window: "filterPrefix",
Size: runewidth.StringWidth(gui.filterPrompt()),
},
{
Window: "filter",
Weight: 1,
},
}...)
}
result = append(result,
[]*boxlayout.Box{
{

Loading…
Cancel
Save