|
|
|
@ -167,7 +167,8 @@ namespace Avalonia.Diagnostics.ViewModels |
|
|
|
|
|
|
|
protected override void Initialize(AvaloniaList<TreeNode> nodes) |
|
|
|
{ |
|
|
|
if (_application.ApplicationLifetime is Lifetimes.ISingleViewApplicationLifetime single) |
|
|
|
if (_application.ApplicationLifetime is Lifetimes.ISingleViewApplicationLifetime single && |
|
|
|
single.MainView is not null) |
|
|
|
{ |
|
|
|
nodes.Add(new VisualTreeNode(single.MainView, Owner)); |
|
|
|
} |
|
|
|
|