Update the Inspector window title after a successful name update.
This commit is contained in:
parent
336f40db7f
commit
d3061f4d8a
|
@ -110,6 +110,8 @@ private extension FolderInspectorViewController {
|
||||||
account.renameFolder(folder, to: nameTextField.stringValue) { [weak self] result in
|
account.renameFolder(folder, to: nameTextField.stringValue) { [weak self] result in
|
||||||
if case .failure(let error) = result {
|
if case .failure(let error) = result {
|
||||||
self?.presentError(error)
|
self?.presentError(error)
|
||||||
|
} else {
|
||||||
|
self?.windowTitle = folder.nameForDisplay
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -220,6 +220,8 @@ private extension WebFeedInspectorViewController {
|
||||||
account.renameWebFeed(feed, to: nameTextField.stringValue) { [weak self] result in
|
account.renameWebFeed(feed, to: nameTextField.stringValue) { [weak self] result in
|
||||||
if case .failure(let error) = result {
|
if case .failure(let error) = result {
|
||||||
self?.presentError(error)
|
self?.presentError(error)
|
||||||
|
} else {
|
||||||
|
self?.windowTitle = feed.nameForDisplay
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue