Keybind: collapse first account if none selected

This commit is contained in:
miruka 2019-11-10 08:34:05 -04:00
parent 5d4840dcd8
commit e2a7b690b3

View File

@ -82,7 +82,9 @@ HListView {
}
function toggleCollapseAccount() {
if (! currentItem || filter) return
if (filter) return
if (! currentItem) incrementCurrentIndex()
if (currentItem.item.delegateModel.type == "Account") {
currentItem.item.toggleCollapse()