mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
22 lines
No EOL
653 B
C#
22 lines
No EOL
653 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Flow.Launcher.Infrastructure.UserSettings;
|
|
|
|
namespace Flow.Launcher.Infrastructure.Storage
|
|
{
|
|
public class FlowLauncherJsonStorage<T> : JsonStorage<T> where T : new()
|
|
{
|
|
public FlowLauncherJsonStorage()
|
|
{
|
|
var directoryPath = Path.Combine(DataLocation.DataDirectory(), DirectoryName);
|
|
Helper.ValidateDirectory(directoryPath);
|
|
|
|
var filename = typeof(T).Name;
|
|
FilePath = Path.Combine(directoryPath, $"{filename}{FileSuffix}");
|
|
}
|
|
}
|
|
} |