2
0
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:
F K
2023-04-30 11:49:22 -04:00
committed by GitHub
parent 5bbf2f50de
commit 639ad72fb4
2 changed files with 11 additions and 4 deletions

View File

@ -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);