diff --git a/src/Toolkit/Toolkit/UI/Controls/PopupViewer/AttachmentsPopupElementView.Windows.cs b/src/Toolkit/Toolkit/UI/Controls/PopupViewer/AttachmentsPopupElementView.Windows.cs index 5e34fb021..8a0e23663 100644 --- a/src/Toolkit/Toolkit/UI/Controls/PopupViewer/AttachmentsPopupElementView.Windows.cs +++ b/src/Toolkit/Toolkit/UI/Controls/PopupViewer/AttachmentsPopupElementView.Windows.cs @@ -32,7 +32,6 @@ public partial class AttachmentsPopupElementView : Control private UI.Controls.PopupViewer? GetPopupViewerParent() { - var parent = VisualTreeHelper.GetParent(this); while(parent is not null && parent is not UI.Controls.PopupViewer popup) { @@ -42,4 +41,4 @@ public partial class AttachmentsPopupElementView : Control } } } -#endif \ No newline at end of file +#endif