Skip to content

Commit e1064f3

Browse files
committed
avalonia: remove workaround for devtools and app lifetime
The issue AvaloniaUI/Avalonia#10296 has been fixed so we can now remove this workaround.
1 parent ac0b264 commit e1064f3

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/shared/Core/UI/AvaloniaUi.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,7 @@ public static Task ShowWindowAsync(Func<Window> windowFunc, object dataContext,
5353
#else
5454
.UsePlatformDetect()
5555
#endif
56-
.LogToTrace()
57-
// Workaround https://github.com/AvaloniaUI/Avalonia/issues/10296
58-
// by always setting a application lifetime.
59-
.SetupWithLifetime(
60-
new ClassicDesktopStyleApplicationLifetime
61-
{
62-
ShutdownMode = ShutdownMode.OnExplicitShutdown
63-
}
64-
);
56+
.LogToTrace();
6557

6658
appInitialized.Set();
6759

0 commit comments

Comments
 (0)