mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
move constant into local scope
This commit is contained in:
parent
c2764fda45
commit
45b3863353
2 changed files with 2 additions and 4 deletions
|
|
@ -15,8 +15,8 @@ namespace Wox.Infrastructure.Storage
|
|||
internal JsonStrorage()
|
||||
{
|
||||
FileSuffix = ".json";
|
||||
DirectoryName = Constant.Settings;
|
||||
DirectoryPath = Constant.SettingsPath;
|
||||
DirectoryName = "Settings";
|
||||
DirectoryPath = Path.Combine(Constant.DataDirectory, DirectoryName);
|
||||
FilePath = Path.Combine(DirectoryPath, FileName + FileSuffix);
|
||||
|
||||
ValidateDirectory();
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ namespace Wox.Infrastructure
|
|||
{
|
||||
public const string Wox = "Wox";
|
||||
public const string Plugins = "Plugins";
|
||||
public const string Settings = "Settings";
|
||||
|
||||
private static readonly Assembly Assembly = Assembly.GetExecutingAssembly();
|
||||
public static readonly string ProgramDirectory = Directory.GetParent(Assembly.Location).ToString();
|
||||
|
|
@ -17,7 +16,6 @@ namespace Wox.Infrastructure
|
|||
public static readonly string DataDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), Wox);
|
||||
public static readonly string PluginsDirectory = Path.Combine(DataDirectory, Plugins);
|
||||
public static readonly string PreinstalledDirectory = Path.Combine(ProgramDirectory, Plugins);
|
||||
public static readonly string SettingsPath = Path.Combine(DataDirectory, Settings);
|
||||
public const string Github = "https://github.com/Wox-launcher/Wox";
|
||||
public const string Issue = "https://github.com/Wox-launcher/Wox/issues/new";
|
||||
public static readonly string Version = FileVersionInfo.GetVersionInfo(Assembly.Location).ProductVersion;
|
||||
|
|
|
|||
Loading…
Reference in a new issue