Making Separators Unselectable

This commit is contained in:
aditya-K2 2021-11-16 17:57:05 +05:30
parent c1140e23ef
commit 942aea1b7b

View File

@ -113,7 +113,14 @@ func UpdateSearchView(inputTable *tview.Table, c []interface{}) {
}
case string:
{
b := content.(string)
if b != "[#ffffff::b]Artists :" && b != "[#ffffff::b]Artist Albums :" &&
b != "[#ffffff::b]Artist Tracks :" && b != "[#ffffff::b]Albums :" &&
b != "[#ffffff::b]Album Tracks :" && b != "[#ffffff::b]Tracks :" {
inputTable.SetCell(i, 0, tview.NewTableCell("[green]"+content.(string)))
} else {
inputTable.SetCell(i, 0, tview.NewTableCell(content.(string)).SetSelectable(false))
}
}
}
}