Minor string change

This commit is contained in:
Robert McRackan 2019-12-16 13:40:54 -05:00
parent 2d0af587d5
commit 6c757773f7
3 changed files with 5 additions and 4 deletions

View File

@ -58,13 +58,14 @@ namespace FileManager
set => persistentDictionary[nameof(Books)] = value; set => persistentDictionary[nameof(Books)] = value;
} }
private const string APP_DIR = "AppDir";
public static string AppDir { get; } = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(Exe.FileLocationOnDisk), LIBATION_FILES)); public static string AppDir { get; } = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(Exe.FileLocationOnDisk), LIBATION_FILES));
public static string MyDocs { get; } = Path.GetFullPath(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), LIBATION_FILES)); public static string MyDocs { get; } = Path.GetFullPath(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), LIBATION_FILES));
public static string WinTemp { get; } = Path.GetFullPath(Path.Combine(Path.GetTempPath(), "Libation")); public static string WinTemp { get; } = Path.GetFullPath(Path.Combine(Path.GetTempPath(), "Libation"));
private Dictionary<string, string> wellKnownPaths { get; } = new Dictionary<string, string> private Dictionary<string, string> wellKnownPaths { get; } = new Dictionary<string, string>
{ {
["AppDir"] = AppDir, [APP_DIR] = AppDir,
["MyDocs"] = MyDocs, ["MyDocs"] = MyDocs,
["WinTemp"] = WinTemp ["WinTemp"] = WinTemp
}; };
@ -130,7 +131,7 @@ namespace FileManager
{ {
static string createSettingsJson() static string createSettingsJson()
{ {
var dir = "AppDir"; var dir = APP_DIR;
File.WriteAllText(APPSETTINGS_JSON, new JObject { { LIBATION_FILES, dir } }.ToString(Formatting.Indented)); File.WriteAllText(APPSETTINGS_JSON, new JObject { { LIBATION_FILES, dir } }.ToString(Formatting.Indented));
return dir; return dir;
} }

View File

@ -98,7 +98,7 @@
this.libationFilesRootRb.Size = new System.Drawing.Size(113, 30); this.libationFilesRootRb.Size = new System.Drawing.Size(113, 30);
this.libationFilesRootRb.TabIndex = 1; this.libationFilesRootRb.TabIndex = 1;
this.libationFilesRootRb.TabStop = true; this.libationFilesRootRb.TabStop = true;
this.libationFilesRootRb.Text = "[desc]\r\n[exeRoot\\Libation]"; this.libationFilesRootRb.Text = "[desc]\r\n[appDir\\Libation]";
this.libationFilesRootRb.UseVisualStyleBackColor = true; this.libationFilesRootRb.UseVisualStyleBackColor = true;
// //
// cancelBtn // cancelBtn

View File

@ -97,7 +97,7 @@
this.libationFilesRootRb.Size = new System.Drawing.Size(113, 30); this.libationFilesRootRb.Size = new System.Drawing.Size(113, 30);
this.libationFilesRootRb.TabIndex = 1; this.libationFilesRootRb.TabIndex = 1;
this.libationFilesRootRb.TabStop = true; this.libationFilesRootRb.TabStop = true;
this.libationFilesRootRb.Text = "[desc]\r\n[exeRoot\\Libation]"; this.libationFilesRootRb.Text = "[desc]\r\n[appDir\\Libation]";
this.libationFilesRootRb.UseVisualStyleBackColor = true; this.libationFilesRootRb.UseVisualStyleBackColor = true;
// //
// cancelBtn // cancelBtn