diff --git a/src/OutlookAddin.UI/Dialogs/SaveAttachmentsDialog.xaml b/src/OutlookAddin.UI/Dialogs/SaveAttachmentsDialog.xaml
index 3f8b721..763e828 100644
--- a/src/OutlookAddin.UI/Dialogs/SaveAttachmentsDialog.xaml
+++ b/src/OutlookAddin.UI/Dialogs/SaveAttachmentsDialog.xaml
@@ -3,8 +3,8 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:conv="clr-namespace:MarcusLaw.OutlookAddin.UI.Converters"
Title="שמור קבצים מצורפים ל-Klear"
- Height="560" Width="620"
- MinHeight="420" MinWidth="500"
+ Height="640" Width="620"
+ MinHeight="480" MinWidth="500"
FlowDirection="RightToLeft"
WindowStartupLocation="CenterOwner"
ShowInTaskbar="False"
@@ -144,24 +144,38 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/OutlookAddin.UI/Dialogs/SaveAttachmentsDialog.xaml.cs b/src/OutlookAddin.UI/Dialogs/SaveAttachmentsDialog.xaml.cs
index 9c074ed..39f599e 100644
--- a/src/OutlookAddin.UI/Dialogs/SaveAttachmentsDialog.xaml.cs
+++ b/src/OutlookAddin.UI/Dialogs/SaveAttachmentsDialog.xaml.cs
@@ -32,5 +32,15 @@ namespace MarcusLaw.OutlookAddin.UI.Dialogs
DialogResult = _viewModel?.DialogResult;
Close();
}
+
+ // WPF's TreeView.SelectedItem is read-only, so we mirror the selection
+ // into the view-model here (the chosen node drives the save target).
+ private void FolderTreeView_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs