改进:打开标注项目时定位当前配方的parts目录
This commit is contained in:
parent
7a1ee2e4ed
commit
aeb2b10309
@ -147,7 +147,9 @@ public sealed class MainViewModel : BindableBase
|
||||
ImportCommand = Command(Import);
|
||||
OpenCommand = Command(async () =>
|
||||
{
|
||||
var dialog = new OpenFileDialog { Filter = "标注项目|project.json" };
|
||||
var partsDirectory = Path.Combine(RecipeDirectoryFor(RecipeName), "parts");
|
||||
Directory.CreateDirectory(partsDirectory);
|
||||
var dialog = new OpenFileDialog { Filter = "标注项目|project.json", InitialDirectory = partsDirectory };
|
||||
if (await dialog.ShowDialogAsync() == true) Load(dialog.FileName);
|
||||
});
|
||||
DoctorCommand = Command(async () => await Run(new { action = "doctor" }, reload: false));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user