mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Various fixes
This commit is contained in:
@@ -521,6 +521,16 @@ public class BrowserScreen: ViewController, MinimizableController {
|
||||
}
|
||||
self.minimize()
|
||||
}
|
||||
browserContent.close = { [weak self] in
|
||||
guard let self, let controller = self.controller else {
|
||||
return
|
||||
}
|
||||
if controller.isMinimized {
|
||||
|
||||
} else {
|
||||
controller.dismiss()
|
||||
}
|
||||
}
|
||||
|
||||
self.content.append(browserContent)
|
||||
self.requestLayout(transition: transition)
|
||||
@@ -952,6 +962,9 @@ public class BrowserScreen: ViewController, MinimizableController {
|
||||
private let context: AccountContext
|
||||
private let subject: Subject
|
||||
|
||||
|
||||
var openPreviousOnClose = false
|
||||
|
||||
public init(context: AccountContext, subject: Subject) {
|
||||
self.context = context
|
||||
self.subject = subject
|
||||
|
||||
Reference in New Issue
Block a user