Fix SettingsFileIsValid
This commit is contained in:
parent
1783da3e2d
commit
ed6f741a65
1 changed files with 6 additions and 1 deletions
|
|
@ -19,8 +19,13 @@ namespace LibationFileManager
|
|||
var pDic = new PersistentDictionary(settingsFile, isReadOnly: false);
|
||||
|
||||
var booksDir = pDic.GetString(nameof(Books));
|
||||
if (booksDir is null || !Directory.Exists(booksDir))
|
||||
|
||||
if (booksDir is null) return false;
|
||||
|
||||
if (!Directory.Exists(booksDir))
|
||||
{
|
||||
//"Books" is not null, so setup has already been run.
|
||||
//Since Books can't be found, try to create it in Libation settings folder
|
||||
booksDir = Path.Combine(Path.GetDirectoryName(settingsFile), nameof(Books));
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue