Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit f117358

Browse files
authored
Fix code retry button and always enable options (#2516)
1 parent dc4dfc6 commit f117358

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Classes/Repository/RepositoryCodeBlobViewController.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ final class RepositoryCodeBlobViewController: UIViewController, EmptyViewDelegat
3434
let barButtonItem = UIBarButtonItem(
3535
image: UIImage(named: "bullets-hollow"),
3636
target: self,
37-
action: #selector(RepositoryCodeBlobViewController.onShare(sender:)))
38-
barButtonItem.isEnabled = false
39-
37+
action: #selector(RepositoryCodeBlobViewController.onShare(sender:))
38+
)
4039
return barButtonItem
4140
}()
4241

@@ -68,8 +67,8 @@ final class RepositoryCodeBlobViewController: UIViewController, EmptyViewDelegat
6867
emptyView.isHidden = true
6968
emptyView.delegate = self
7069
emptyView.button.isHidden = false
71-
view.addSubview(emptyView)
7270
view.addSubview(codeView)
71+
view.addSubview(emptyView)
7372

7473
codeView.refreshControl = feedRefresh.refreshControl
7574
feedRefresh.refreshControl.addTarget(self, action: #selector(onRefresh), for: .valueChanged)
@@ -101,7 +100,6 @@ final class RepositoryCodeBlobViewController: UIViewController, EmptyViewDelegat
101100

102101
func didFetchPayload(_ payload: Any) {
103102
sharingPayload = payload
104-
moreOptionsItem.isEnabled = true
105103
}
106104

107105
@objc func onRefresh() {

0 commit comments

Comments
 (0)