mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-22 11:03:21 -04:00
commit
This commit is contained in:
parent
f035cc8b2a
commit
7ed593e139
@ -57,7 +57,6 @@ class MainController: UIViewController {
|
||||
webView.delegate = self
|
||||
navigationItem.titleView = searchBar
|
||||
showWelcome()
|
||||
//configureWebView()
|
||||
AppNotification.shared.rateApp()
|
||||
}
|
||||
|
||||
@ -116,6 +115,7 @@ class MainController: UIViewController {
|
||||
|
||||
extension MainController {
|
||||
func showEmptyTab() {
|
||||
removeCurrentTab()
|
||||
let controller = controllers.createTab()
|
||||
addChildViewController(controller)
|
||||
tabContainerView.addSubview(controller.view)
|
||||
|
@ -13,9 +13,6 @@ class TabController: UIViewController {
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
let url = URL(string: "https://www.google.com")!
|
||||
webView.loadRequest(URLRequest(url: url))
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ class BrowsingHistoryController: UITableViewController {
|
||||
Preference.RecentSearch.terms.removeAll()
|
||||
UIQueue.shared.add(operation: AlertProcedure.History.clearSearchHistory(context: self))
|
||||
} else {
|
||||
AppDelegate.mainController.resetWebView()
|
||||
AppDelegate.mainController.showEmptyTab()
|
||||
UIQueue.shared.add(operation: AlertProcedure.History.clearBrowsingHistory(context: self))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user