Call completion if even it if we don't initialize the command. Fixes #3092
This commit is contained in:
parent
5a31a90d0c
commit
7b3921bcb1
|
@ -27,6 +27,7 @@ final class MarkStatusCommand: UndoableCommand {
|
||||||
// Filter out articles that already have the desired status or can't be marked.
|
// Filter out articles that already have the desired status or can't be marked.
|
||||||
let articlesToMark = MarkStatusCommand.filteredArticles(initialArticles, statusKey, flag)
|
let articlesToMark = MarkStatusCommand.filteredArticles(initialArticles, statusKey, flag)
|
||||||
if articlesToMark.isEmpty {
|
if articlesToMark.isEmpty {
|
||||||
|
completion?()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
self.articles = Set(articlesToMark)
|
self.articles = Set(articlesToMark)
|
||||||
|
|
Loading…
Reference in New Issue