Fixes “Add/Remove Source” button title not updating after removing source

This commit is contained in:
Riley Testut
2023-10-19 14:11:24 -05:00
parent 8a0d27488e
commit 0eac8f885d

View File

@@ -233,9 +233,13 @@ class SourceDetailViewController: HeaderContentViewController<SourceHeaderView,
self.navigationBarButton.isHidden = true
}
if self.addButton.title != title
if title != self.addButton.title
{
self.addButton.title = title
}
if title != self.navigationBarButton.title(for: .normal) && !self.navigationBarButton.isIndicatingActivity
{
self.navigationBarButton.setTitle(title, for: .normal)
}