mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-24 21:54:59 +00:00
optimize<FolderDialog>: remove dependency of Ookii.Dialogs.Wpf
This commit is contained in:
parent
a7ddc50665
commit
4a56b47265
11 changed files with 132 additions and 15 deletions
|
@ -1,5 +1,4 @@
|
|||
using Microsoft.Win32;
|
||||
using Ookii.Dialogs.Wpf;
|
||||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
@ -62,7 +61,7 @@ namespace SourceGit.Views {
|
|||
}
|
||||
|
||||
private void SelectGitCloneDir(object sender, RoutedEventArgs e) {
|
||||
var dialog = new VistaFolderBrowserDialog();
|
||||
var dialog = new Controls.FolderDialog();
|
||||
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