Skip reloading HTML in the detail view when the article is set and it’s the same article that was already set.
This commit is contained in:
parent
064ef20c19
commit
1c2759dd2b
|
@ -31,7 +31,9 @@ final class DetailViewController: NSViewController, WKUIDelegate {
|
|||
|
||||
private var article: Article? {
|
||||
didSet {
|
||||
reloadHTML()
|
||||
if article != nil, article != oldValue {
|
||||
reloadHTML()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue