mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-01 09:24:58 +00:00
fix<FolderDialog>: using System.Windows.Forms.FolderBrowserDialog instead of Controls.FolderDialog to avoid crashes
This commit is contained in:
parent
0dc73cbc0d
commit
12511007e3
7 changed files with 16 additions and 134 deletions
|
@ -95,8 +95,9 @@ namespace SourceGit.Views {
|
|||
}
|
||||
|
||||
private void OnFolderSelectorClick(object sender, RoutedEventArgs e) {
|
||||
var dialog = new Controls.FolderDialog();
|
||||
if (dialog.ShowDialog() == true) {
|
||||
var dialog = new System.Windows.Forms.FolderBrowserDialog();
|
||||
dialog.ShowNewFolderButton = true;
|
||||
if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) {
|
||||
Folder = dialog.SelectedPath;
|
||||
txtFolder.GetBindingExpression(TextBox.TextProperty).UpdateTarget();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue