From 445a3e27e4ad36961fedd543ad7338904788a8f0 Mon Sep 17 00:00:00 2001 From: dotMorten Date: Tue, 4 Jun 2024 09:26:18 -0700 Subject: [PATCH] Add missing spaces --- .../Controls/PopupViewer/AttachmentsPopupElementView.Windows.cs | 2 +- .../UI/Controls/PopupViewer/AttachmentsPopupElementView.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }