From 3b5a6f257649802a8bf74488d77d968ea35accaa Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Wed, 18 Sep 2019 20:03:01 -0500 Subject: [PATCH] Don't allow the article extraction button to toggle if it isn't working. --- Mac/MainWindow/MainWindowController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mac/MainWindow/MainWindowController.swift b/Mac/MainWindow/MainWindowController.swift index 566106e0c..e7454de3a 100644 --- a/Mac/MainWindow/MainWindowController.swift +++ b/Mac/MainWindow/MainWindowController.swift @@ -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 }