Moved recently opened file location to app data.

This commit is contained in:
Tobias Erbshäußer
2021-01-01 18:41:16 +01:00
parent 7efdc01919
commit ff540c6f0c
+7 -2
View File
@@ -1,4 +1,6 @@
using UCalc.Data;
using System;
using System.IO;
using UCalc.Data;
namespace UCalc
{
@@ -9,7 +11,10 @@ namespace UCalc
public App()
{
_recentlyOpenedList = new RecentlyOpenedList("recently.txt");
var appDataPath = $"{Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)}/UCalc";
Directory.CreateDirectory(appDataPath);
_recentlyOpenedList = new RecentlyOpenedList($"{appDataPath}/recently.txt");
}
}
}