Refactor internal data path finding to Utilities
This commit is contained in:
@@ -41,14 +41,7 @@ class Settings : ChangeNotifier
|
||||
|
||||
public static string GetSettingsPath()
|
||||
{
|
||||
var path = Path.Combine(
|
||||
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
|
||||
"MayShow"
|
||||
);
|
||||
if (!Directory.Exists(path))
|
||||
{
|
||||
Directory.CreateDirectory(path);
|
||||
}
|
||||
var path = Utilities.GetInternalDataPath();
|
||||
return Path.Combine(path, GetSettingsFileName());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user