diff --git a/src/UI/FolderDailog.xaml.cs b/src/UI/FolderDailog.xaml.cs
index 5d46b945..70a0d350 100644
--- a/src/UI/FolderDailog.xaml.cs
+++ b/src/UI/FolderDailog.xaml.cs
@@ -121,8 +121,29 @@ namespace SourceGit.UI {
///
public static void Open(string title, Action onOK) {
new FolderDailog(title, onOK).Show();
+ }
+
+ ///
+ /// modeless.
+ ///
+ ///
+ ///
+ public static void Show(string title, Action onOK)
+ {
+ new FolderDailog(title, onOK).Show();
}
+ ///
+ /// modal.
+ ///
+ ///
+ ///
+ public static void ShowDialog(string title, Action onOK)
+ {
+ new FolderDailog(title, onOK).ShowDialog();
+ }
+
+
#region EVENTS
private void OnSure(object sender, RoutedEventArgs e) {
if (selected != null) cb?.Invoke(selected.Path);
diff --git a/src/UI/NewPage.xaml.cs b/src/UI/NewPage.xaml.cs
index 01d30a2b..e52713a2 100644
--- a/src/UI/NewPage.xaml.cs
+++ b/src/UI/NewPage.xaml.cs
@@ -42,7 +42,7 @@ namespace SourceGit.UI {
///
///
private void OpenOrAddRepo(object sender, RoutedEventArgs e) {
- FolderDailog.Open(App.Text("NewPage.OpenOrInitDialog"), path => {
+ FolderDailog.ShowDialog(App.Text("NewPage.OpenOrInitDialog"), path => {
CheckAndOpenRepo(path);
});
}