|
|
|
@ -4,7 +4,6 @@ using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using MaterialDesignThemes.Wpf;
|
|
|
|
|
using Microsoft.Win32;
|
|
|
|
|
using Ookii.Dialogs.Wpf;
|
|
|
|
|
using Stylet;
|
|
|
|
|
|
|
|
|
|
namespace DiscordChatExporter.Gui.ViewModels.Framework;
|
|
|
|
@ -68,9 +67,8 @@ public class DialogManager : IDisposable
|
|
|
|
|
|
|
|
|
|
public string? PromptDirectoryPath(string defaultDirPath = "")
|
|
|
|
|
{
|
|
|
|
|
var dialog = new VistaFolderBrowserDialog { SelectedPath = defaultDirPath };
|
|
|
|
|
|
|
|
|
|
return dialog.ShowDialog() == true ? dialog.SelectedPath : null;
|
|
|
|
|
var dialog = new OpenFolderDialog { InitialDirectory = defaultDirPath };
|
|
|
|
|
return dialog.ShowDialog() == true ? dialog.FolderName : null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Dispose()
|
|
|
|
|