Fix crash when editing hide-action filter

This commit is contained in:
Shadowfacts 2023-05-14 21:32:22 -04:00
parent dc83172aea
commit daa38772b4
1 changed files with 8 additions and 2 deletions

View File

@ -126,11 +126,17 @@ class Filterer {
break
} else if old.0.pattern != new.0.pattern {
allMatch = false
if new.1 == .hide {
// if the pattern's changed and the action is hide, then the cell type for existing items may change
actionsChanged = true
break
} else {
// continue because we want to know if any actions changed
continue
}
}
}
}
if !allMatch {
generation += 1
filtersChanged?(actionsChanged)