diff --git a/src/Toolkit/Toolkit/UI/Controls/PopupViewer/AttachmentsPopupElementView.Windows.cs b/src/Toolkit/Toolkit/UI/Controls/PopupViewer/AttachmentsPopupElementView.Windows.cs index 8a0e23663..9a9f5c895 100644 --- a/src/Toolkit/Toolkit/UI/Controls/PopupViewer/AttachmentsPopupElementView.Windows.cs +++ b/src/Toolkit/Toolkit/UI/Controls/PopupViewer/AttachmentsPopupElementView.Windows.cs @@ -33,7 +33,7 @@ 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) + while (parent is not null && parent is not UI.Controls.PopupViewer popup) { parent = VisualTreeHelper.GetParent(parent); } diff --git a/src/Toolkit/Toolkit/UI/Controls/PopupViewer/AttachmentsPopupElementView.cs b/src/Toolkit/Toolkit/UI/Controls/PopupViewer/AttachmentsPopupElementView.cs index 19e1cdbad..3b9a17405 100644 --- a/src/Toolkit/Toolkit/UI/Controls/PopupViewer/AttachmentsPopupElementView.cs +++ b/src/Toolkit/Toolkit/UI/Controls/PopupViewer/AttachmentsPopupElementView.cs @@ -168,7 +168,7 @@ await Microsoft.Maui.ApplicationModel.Launcher.Default.OpenAsync( using var outfile = saveFileDialog.OpenFile(); await stream.CopyToAsync(outfile); } - catch(System.Exception ex) + catch (System.Exception ex) { System.Diagnostics.Trace.WriteLine($"Failed to save file to disk: " + ex.Message); }