mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Fixes “Add/Remove Source” button title not updating after removing source
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user