mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-05-05 03:53:40 +00:00
Update for Avalonia 12
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Controls.ApplicationLifetimes;
|
||||
using Avalonia.VisualTree;
|
||||
using PowerKit.Extensions;
|
||||
|
||||
namespace DiscordChatExporter.Gui.Utils.Extensions;
|
||||
|
||||
@@ -15,7 +15,7 @@ internal static class AvaloniaExtensions
|
||||
|
||||
public TopLevel? TryGetTopLevel() =>
|
||||
lifetime.TryGetMainWindow()
|
||||
?? (lifetime as ISingleViewApplicationLifetime)?.MainView?.GetVisualRoot() as TopLevel;
|
||||
?? (lifetime as ISingleViewApplicationLifetime)?.MainView?.Pipe(TopLevel.GetTopLevel);
|
||||
|
||||
public bool TryShutdown(int exitCode = 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user