mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-11-30 12:44:51 +00:00
fix not showing correct browser when opening
This commit is contained in:
3 files changed
+38
-14
No files matched your search
@@ -34,19 +34,6 @@ 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)
|
||||
reload()
|
||||
}
|
||||
|
||||
override func numberOfSections(in tableView: UITableView) -> Int {
|
||||
return 2
|
||||
}
|
||||
|
||||