Fix multiple selection

This commit is contained in:
Ramires Viana 2020-01-05 18:28:17 +00:00 committed by Henrique Dias
parent 118071ba4b
commit cc7ec4f0c5
2 changed files with 3 additions and 3 deletions

View File

@ -62,11 +62,11 @@ func (l byName) Swap(i, j int) {
// Treat upper and lower case equally
func (l byName) Less(i, j int) bool {
if l.Items[i].IsDir && !l.Items[j].IsDir {
return true
return l.Sorting.Asc
}
if !l.Items[i].IsDir && l.Items[j].IsDir {
return false
return !l.Sorting.Asc
}
return natural.Less(strings.ToLower(l.Items[j].Name), strings.ToLower(l.Items[i].Name))

View File

@ -129,7 +129,7 @@ export default {
return
}
if (event.shiftKey && this.selected.length === 1) {
if (event.shiftKey) {
let fi = 0
let la = 0