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:
Brent Simmons 2019-02-09 12:15:05 -08:00
parent 064ef20c19
commit 1c2759dd2b
1 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,9 @@ final class DetailViewController: NSViewController, WKUIDelegate {
private var article: Article? {
didSet {
reloadHTML()
if article != nil, article != oldValue {
reloadHTML()
}
}
}