diff options
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls/BasePathEditorControl.cs')
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/BasePathEditorControl.cs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/BasePathEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/BasePathEditorControl.cs index ddf4a2c..461512e 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/BasePathEditorControl.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/BasePathEditorControl.cs @@ -38,15 +38,9 @@ namespace Xamarin.PropertyEditing.Mac StringValue = string.Empty
}; - this.currentTextField.AddButton (this.revealPathButton);
-
- this.panel = new NSOpenPanel {
- AllowsMultipleSelection = false,
- CanCreateDirectories = true,
- ShowsHiddenFiles = false,
- ShowsResizeIndicator = true,
- TreatsFilePackagesAsDirectories = true,
- }; + this.currentTextField.AddButton (this.revealPathButton); + + this.panel = NSOpenPanel.OpenPanel; // update the value on keypress this.revealPathButton.Activated += OnRevealPathButtonActivated; @@ -92,7 +86,13 @@ namespace Xamarin.PropertyEditing.Mac private void BrowsePathButton_Activated (object sender, EventArgs e) {
Window.MakeFirstResponder (this.currentTextField);
- this.panel.BeginSheet (this.Window, HandleAction);
+
+ this.panel.AllowsMultipleSelection = false; + this.panel.CanCreateDirectories = true; + this.panel.ShowsHiddenFiles = false; + this.panel.ShowsResizeIndicator = true; + this.panel.TreatsFilePackagesAsDirectories = true;
+ this.panel.BeginSheet (Window, HandleAction);
}
protected abstract void OnRevealPathButtonActivated (object sender, EventArgs e); |