mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-23 08:09:41 +01:00
Fix threading issue
This commit is contained in:
parent
b5eff641d0
commit
3c2c17df0d
@ -471,13 +471,15 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
|
|||||||
}
|
}
|
||||||
|
|
||||||
@objc func userDefaultsDidChange(_ note: Notification) {
|
@objc func userDefaultsDidChange(_ note: Notification) {
|
||||||
if numberOfTextLines != AppDefaults.shared.timelineNumberOfLines || iconSize != AppDefaults.shared.timelineIconSize {
|
DispatchQueue.main.async {
|
||||||
numberOfTextLines = AppDefaults.shared.timelineNumberOfLines
|
if self.numberOfTextLines != AppDefaults.shared.timelineNumberOfLines || self.iconSize != AppDefaults.shared.timelineIconSize {
|
||||||
iconSize = AppDefaults.shared.timelineIconSize
|
self.numberOfTextLines = AppDefaults.shared.timelineNumberOfLines
|
||||||
resetEstimatedRowHeight()
|
self.iconSize = AppDefaults.shared.timelineIconSize
|
||||||
reloadAllVisibleCells()
|
self.resetEstimatedRowHeight()
|
||||||
|
self.reloadAllVisibleCells()
|
||||||
|
}
|
||||||
|
self.updateToolbar()
|
||||||
}
|
}
|
||||||
updateToolbar()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func contentSizeCategoryDidChange(_ note: Notification) {
|
@objc func contentSizeCategoryDidChange(_ note: Notification) {
|
||||||
|
Loading…
Reference in New Issue
Block a user