mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-02 21:12:02 +08:00
Cleanup Sieve Filter edit, no need to reassign filters on save
This commit is contained in:
parent
cf71c1a18f
commit
6c4950615d
1 changed files with 1 additions and 9 deletions
|
@ -110,15 +110,7 @@ export class SieveScriptPopupView extends rl.pluginPopupView {
|
|||
const clonedFilter = filter.assignTo();
|
||||
FilterPopupView.showModal([
|
||||
clonedFilter,
|
||||
() => {
|
||||
const script = this.script(),
|
||||
filters = script.filters(),
|
||||
index = filters.indexOf(filter);
|
||||
if (-1 < index) {
|
||||
clonedFilter.assignTo(filter);
|
||||
script.filters(filters);
|
||||
}
|
||||
},
|
||||
() => clonedFilter.assignTo(filter),
|
||||
true
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue