Present update info screen above everything else

This commit is contained in:
Ilya Laktyushin 2019-07-11 01:11:47 +02:00
parent 0bf61a2794
commit e906e0ee6a
2 changed files with 2 additions and 1 deletions

View File

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

View File

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