Tim Miller
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
1 deletions
-
src/iOS/Avalonia.iOS/AvaloniaSceneDelegate.cs
|
|
|
@ -13,7 +13,9 @@ internal sealed class AvaloniaSceneDelegate : UIResponder, IUIWindowSceneDelegat |
|
|
|
[Export("scene:willConnectToSession:options:")] |
|
|
|
public void WillConnect(UIScene scene, UISceneSession session, UISceneConnectionOptions connectionOptions) |
|
|
|
{ |
|
|
|
if (session.Configuration.Name is not null || |
|
|
|
// Protect against non-application scenes, which can be created by the system for external displays, CarPlay, etc.
|
|
|
|
if (session.Role != UIWindowSceneSessionRole.Application || |
|
|
|
session.Configuration.Name is not null || |
|
|
|
scene is not UIWindowScene windowScene || |
|
|
|
Application.Current?.ApplicationLifetime is not SingleViewLifetime lifetime) |
|
|
|
{ |
|
|
|
|