Don't allow the article extraction button to toggle if it isn't working.

This commit is contained in:
Maurice Parker 2019-09-18 20:03:01 -05:00
parent 7ec3160273
commit 3b5a6f2576
1 changed files with 2 additions and 1 deletions

View File

@ -321,8 +321,8 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
extractor.delegate = self
extractor.process()
articleExtractor = extractor
makeToolbarValidate()
}
makeToolbarValidate()
}
}
@ -695,6 +695,7 @@ private extension MainWindowController {
guard let articleExtractorState = articleExtractor?.state else {
articleExtractorButton.isError = false
articleExtractorButton.isInProgress = false
articleExtractorButton.state = .off
return currentLink != nil
}