macOS: Log view: No need to disable Close button
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
6175de0438
commit
f83f159f97
|
@ -44,7 +44,8 @@ public class LogViewHelper {
|
|||
LogViewHelper.logEntries.append(LogEntry(timestamp: dateString, message: message))
|
||||
}
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
self?.cursor = newCursor
|
||||
guard let self = self else { return }
|
||||
self.cursor = newCursor
|
||||
completion(LogViewHelper.logEntries)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -94,7 +94,6 @@ class LogViewController: NSViewController {
|
|||
|
||||
closeButton.target = self
|
||||
closeButton.action = #selector(closeClicked)
|
||||
closeButton.isEnabled = false
|
||||
|
||||
saveButton.target = self
|
||||
saveButton.action = #selector(saveClicked)
|
||||
|
@ -153,7 +152,6 @@ class LogViewController: NSViewController {
|
|||
}
|
||||
if !self.progressIndicator.isHidden {
|
||||
self.progressIndicator.stopAnimation(self)
|
||||
self.closeButton.isEnabled = true
|
||||
self.saveButton.isEnabled = true
|
||||
}
|
||||
guard !fetchedLogEntries.isEmpty else { return }
|
||||
|
|
Loading…
Reference in New Issue