Skip to content

Commit b1c5bc7

Browse files
committed
Adding via package now works
1 parent 6352ea7 commit b1c5bc7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

LiveWriterPluginManager/Services/ZipService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private static Task<Manifest> ReadManifest(string extractPath)
113113

114114
var content = File.ReadAllText(file.FullName);
115115
var manifest = JsonConvert.DeserializeObject<Manifest>(content);
116-
manifest.PluginPath = string.Concat(extractPath, manifest.PluginFileName);
116+
manifest.PluginPath = string.Concat(extractPath, "\\", manifest.PluginFileName);
117117
return Task.FromResult(manifest);
118118
}
119119
}

LiveWriterPluginManager/ViewModel/CreatePackageViewModel.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@ public RelayCommand CreatePackageCommand
8989
var packageFile = _fileService.ChoosePackageLocation();
9090
var filePaths = Files.Select(x => x.Path).ToArray();
9191

92-
await _zipService.ZipFilesAsync(filePaths, packageFile, manifest);
92+
if (await _zipService.ZipFilesAsync(filePaths, packageFile, manifest))
93+
{
94+
Files.Clear();
95+
ManifestViewModel = new ManifestViewModel(new Manifest());
96+
}
9397
});
9498
}
9599
}

0 commit comments

Comments
 (0)