Various fixes

This commit is contained in:
Ilya Laktyushin
2024-07-18 19:39:49 +04:00
parent f4cc9d1aad
commit 3a38e70fda
8 changed files with 89 additions and 26 deletions

View File

@@ -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