mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
QLPreviewController: remove button
This commit is contained in:
parent
c44c842ae3
commit
9d5cc0d279
@ -54,7 +54,9 @@ final class DocumentPreviewController: UINavigationController, QLPreviewControll
|
||||
}, rootController: self)
|
||||
controller.delegate = self
|
||||
controller.dataSource = self
|
||||
controller.navigationItem.setLeftBarButton(UIBarButtonItem(title: strings.Common_Cancel, style: .plain, target: self, action: #selector(self.cancelPressed)), animated: false)
|
||||
if #available(iOS 16.0, *) {
|
||||
controller.navigationItem.setLeftBarButton(UIBarButtonItem(title: strings.Common_Cancel, style: .plain, target: self, action: #selector(self.cancelPressed)), animated: false)
|
||||
}
|
||||
self.setViewControllers([controller], animated: false)
|
||||
|
||||
if let path = self.postbox.mediaBox.completedResourcePath(self.file.resource) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user