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