optimize<FolderDialog>: remove dependency of Ookii.Dialogs.Wpf

This commit is contained in:
leo 2021-07-20 09:13:07 +08:00
parent a7ddc50665
commit 4a56b47265
11 changed files with 132 additions and 15 deletions

View file

@ -1,4 +1,3 @@
using Ookii.Dialogs.Wpf;
using System.Threading.Tasks;
using System.Windows.Controls;
@ -55,7 +54,7 @@ namespace SourceGit.Views.Popups {
}
private void OnFolderSelectorClick(object sender, System.Windows.RoutedEventArgs e) {
var dialog = new VistaFolderBrowserDialog();
var dialog = new Controls.FolderDialog();
if (dialog.ShowDialog() == true) {
Folder = dialog.SelectedPath;
txtFolder.GetBindingExpression(TextBox.TextProperty).UpdateTarget();