mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-30 07:00:49 +00:00
Present update info screen above everything else
This commit is contained in:
parent
0bf61a2794
commit
e906e0ee6a
@ -522,7 +522,7 @@ final class AuthorizedApplicationContext {
|
||||
strongSelf.currentAppUpdateInfo = appUpdateInfo
|
||||
if let appUpdateInfo = appUpdateInfo {
|
||||
let controller = updateInfoController(context: strongSelf.context, appUpdateInfo: appUpdateInfo)
|
||||
(strongSelf.rootController.viewControllers.last as? ViewController)?.present(controller, in: .window(.root))
|
||||
strongSelf.mainWindow.present(controller, on: .update)
|
||||
}
|
||||
}))
|
||||
|
||||
|
@ -7,4 +7,5 @@ public extension PresentationSurfaceLevel {
|
||||
static let overlayMedia = PresentationSurfaceLevel(rawValue: 2)
|
||||
static let notifications = PresentationSurfaceLevel(rawValue: 3)
|
||||
static let passcode = PresentationSurfaceLevel(rawValue: 4)
|
||||
static let update = PresentationSurfaceLevel(rawValue: 5)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user