fix remember selection on open issue

This commit is contained in:
Nihaal Sharma committed 2026-08-02 14:22:42 +05:30
1 parent a3a5f64a89
commit 23af724d60
1 file changed
+12
@@ -34,6 +34,18 @@ class MessagesPackListView: UITableViewController {
tableView.reconfigureRows(at: indexPaths)
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
let selRow = UserDefaults.standard.integer(forKey: "selectedPackRowIndex")
let indexPath: IndexPath
if selRow == -1 {
indexPath = IndexPath(row: 0, section: 0)
} else {
indexPath = IndexPath(row: selRow, section: 1)
}
tableView.selectRow(at: indexPath, animated: false, scrollPosition: .none)
}
override func numberOfSections(in tableView: UITableView) -> Int {
return 2
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.