mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 05:05:00 +00:00
feature<FolderDialog>: remove View.FolderBrowser and use windows shell32 API to select folders
This commit is contained in:
parent
0419cf96fc
commit
6061f5a074
8 changed files with 169 additions and 213 deletions
|
@ -47,7 +47,8 @@ namespace SourceGit.Views.Widgets {
|
|||
|
||||
#region FUNC_EVENTS
|
||||
private void OnOpenClicked(object sender, RoutedEventArgs e) {
|
||||
FolderBrowser.Open(null, App.Text("Welcome.OpenOrInitDialog"), CheckAndOpen);
|
||||
var dialog = new Controls.FolderDialog("Welcome.OpenOrInitDialog");
|
||||
if (dialog.ShowDialog() == true) CheckAndOpen(dialog.SelectedPath);
|
||||
}
|
||||
|
||||
private void OnCloneClicked(object sender, RoutedEventArgs e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue