mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-24 21:54:59 +00:00
feature<FolderDailog>: use Ookii.Dialog.Wpf instead of Views.Controls.FolderDailog
This commit is contained in:
parent
8c8109dc60
commit
598f940cf3
11 changed files with 15 additions and 148 deletions
|
@ -1,4 +1,5 @@
|
|||
using Microsoft.Win32;
|
||||
using Ookii.Dialogs.Wpf;
|
||||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
@ -61,7 +62,7 @@ namespace SourceGit.Views {
|
|||
}
|
||||
|
||||
private void SelectGitCloneDir(object sender, RoutedEventArgs e) {
|
||||
var dialog = new Controls.FolderDialog("Preference.Dialog.GitDir");
|
||||
var dialog = new VistaFolderBrowserDialog();
|
||||
if (dialog.ShowDialog() == true) {
|
||||
Models.Preference.Instance.Git.DefaultCloneDir = dialog.SelectedPath;
|
||||
txtGitCloneDir?.GetBindingExpression(TextBox.TextProperty).UpdateTarget();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue