75GWGXZ4323O6EXKU5RGJD627K4LB4DRBEGXY5GYM43LDZ66HEMQC
func newScheduledTaskSelector(config *config, width int, height int) selector {
model := selector{config: config, width: width, height: height, fetchFunc: fetchScheduledTasks(config.queries)}
func newPlannedTaskSelector(config *config, width int, height int, source string) selector {
model := selector{config: config, width: width, height: height, fetchFunc: fetchScheduledTasks(config.queries, source), tracking: source}
model.list.SetItems(msg)
model.list.StopSpinner()
if len(msg) > 0 {
if i, ok := msg[0].(listItem); ok {
return model, func () tea.Msg {
if model.tracking == msg.source {
model.list.SetItems(msg.items)
model.list.StopSpinner()
i, ok := model.list.SelectedItem().(listItem)
if len(msg.items) > 0 && ok && model.ignoreChange == false {
return model, func() tea.Msg {