mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-27 09:21:21 +01:00
Use string-based key paths instead of Swift key paths for FeedlyOperation. #1481
This commit is contained in:
parent
4184202806
commit
6922b6ddec
@ -94,19 +94,19 @@ class FeedlyOperation: Operation {
|
||||
let isFinishedDidChange = finished != isFinishedOperation
|
||||
|
||||
if isFinishedDidChange {
|
||||
willChangeValue(for: \.isFinished)
|
||||
willChangeValue(forKey: #keyPath(isFinished))
|
||||
}
|
||||
if isExecutingDidChange {
|
||||
willChangeValue(for: \.isExecuting)
|
||||
willChangeValue(forKey: #keyPath(isExecuting))
|
||||
}
|
||||
isExecutingOperation = executing
|
||||
isFinishedOperation = finished
|
||||
|
||||
if isExecutingDidChange {
|
||||
didChangeValue(for: \.isExecuting)
|
||||
didChangeValue(forKey: #keyPath(isExecuting))
|
||||
}
|
||||
if isFinishedDidChange {
|
||||
didChangeValue(for: \.isFinished)
|
||||
didChangeValue(forKey: #keyPath(isFinished))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user