mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 11:23:48 +00:00
Various improvements
This commit is contained in:
parent
e7f6d60b73
commit
3ed05bc39d
@ -2758,7 +2758,6 @@ public final class WebAppController: ViewController, AttachmentContainable {
|
|||||||
self.statusBar.statusBarStyle = self.presentationData.theme.rootController.statusBarStyle.style
|
self.statusBar.statusBarStyle = self.presentationData.theme.rootController.statusBarStyle.style
|
||||||
self.automaticallyControlPresentationContextLayout = false
|
self.automaticallyControlPresentationContextLayout = false
|
||||||
|
|
||||||
if !self.isFullscreen {
|
|
||||||
self.navigationItem.leftBarButtonItem = UIBarButtonItem(customDisplayNode: self.cancelButtonNode)
|
self.navigationItem.leftBarButtonItem = UIBarButtonItem(customDisplayNode: self.cancelButtonNode)
|
||||||
self.navigationItem.leftBarButtonItem?.action = #selector(self.cancelPressed)
|
self.navigationItem.leftBarButtonItem?.action = #selector(self.cancelPressed)
|
||||||
self.navigationItem.leftBarButtonItem?.target = self
|
self.navigationItem.leftBarButtonItem?.target = self
|
||||||
@ -2773,7 +2772,6 @@ public final class WebAppController: ViewController, AttachmentContainable {
|
|||||||
titleView.title = WebAppTitle(title: params.botName, counter: self.presentationData.strings.WebApp_Miniapp, isVerified: params.botVerified)
|
titleView.title = WebAppTitle(title: params.botName, counter: self.presentationData.strings.WebApp_Miniapp, isVerified: params.botVerified)
|
||||||
self.navigationItem.titleView = titleView
|
self.navigationItem.titleView = titleView
|
||||||
self.titleView = titleView
|
self.titleView = titleView
|
||||||
}
|
|
||||||
|
|
||||||
self.moreButtonNode.action = { [weak self] _, gesture in
|
self.moreButtonNode.action = { [weak self] _, gesture in
|
||||||
if let strongSelf = self {
|
if let strongSelf = self {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user