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
committed by Magesh K
parent c3820136a6
commit 83d8d2e38a

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)
}