Set windowTitle in updateUI() method for *InspectorViewControllers

This commit is contained in:
Angelo Stavrow 2020-09-07 13:59:14 -04:00
parent c7aa5656d8
commit 5f095e8966
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE
3 changed files with 3 additions and 1 deletions

View File

@ -63,5 +63,6 @@ private extension BuiltinSmartFeedInspectorViewController {
func updateUI() {
nameTextField?.stringValue = smartFeed?.nameForDisplay ?? ""
windowTitle = smartFeed?.nameForDisplay ?? NSLocalizedString("Smart Feed Inspector", comment: "Smart Feed Inspector window title")
}
}

View File

@ -104,5 +104,6 @@ private extension FolderInspectorViewController {
if nameTextField.stringValue != name {
nameTextField.stringValue = name
}
windowTitle = folder?.nameForDisplay ?? NSLocalizedString("Folder Inspector", comment: "Folder Inspector window title")
}
}

View File

@ -134,7 +134,7 @@ private extension WebFeedInspectorViewController {
updateFeedURL()
updateNotifyAboutNewArticles()
updateIsReaderViewAlwaysOn()
windowTitle = feed?.nameForDisplay ?? NSLocalizedString("Feed Inspector", comment: "Feed Inspector window title")
view.needsLayout = true
}