Fix crash when editing hide-action filter
This commit is contained in:
parent
dc83172aea
commit
daa38772b4
|
@ -126,11 +126,17 @@ class Filterer {
|
||||||
break
|
break
|
||||||
} else if old.0.pattern != new.0.pattern {
|
} else if old.0.pattern != new.0.pattern {
|
||||||
allMatch = false
|
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 because we want to know if any actions changed
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if !allMatch {
|
if !allMatch {
|
||||||
generation += 1
|
generation += 1
|
||||||
filtersChanged?(actionsChanged)
|
filtersChanged?(actionsChanged)
|
||||||
|
|
Loading…
Reference in New Issue