Update the Inspector window title after a successful name update.

This commit is contained in:
Maurice Parker 2020-12-09 17:12:58 -06:00
parent 336f40db7f
commit d3061f4d8a
2 changed files with 4 additions and 0 deletions

View File

@ -110,6 +110,8 @@ private extension FolderInspectorViewController {
account.renameFolder(folder, to: nameTextField.stringValue) { [weak self] result in
if case .failure(let error) = result {
self?.presentError(error)
} else {
self?.windowTitle = folder.nameForDisplay
}
}
}

View File

@ -220,6 +220,8 @@ private extension WebFeedInspectorViewController {
account.renameWebFeed(feed, to: nameTextField.stringValue) { [weak self] result in
if case .failure(let error) = result {
self?.presentError(error)
} else {
self?.windowTitle = feed.nameForDisplay
}
}
}