mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-07-01 08:23:42 -04:00
2 Bug Fixes (#112)
Add a try-catch in ReadAllLines to handle a read failure if a file is locked. Add a check for a non-existing export folder when exporting and prompt for new path if it doesn't exist.
This commit is contained in:
@ -112,7 +112,7 @@ namespace Observatory.UI.ViewModels
|
||||
try
|
||||
{
|
||||
var exportFolder = Properties.Core.Default.ExportFolder;
|
||||
if (string.IsNullOrEmpty(exportFolder))
|
||||
if (string.IsNullOrEmpty(exportFolder) || !Directory.Exists(exportFolder))
|
||||
{
|
||||
exportFolder = System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
|
||||
|
||||
|
Reference in New Issue
Block a user