From 6c757773f7da7eb92a43997783bdbb37fa5eecd7 Mon Sep 17 00:00:00 2001 From: Robert McRackan Date: Mon, 16 Dec 2019 13:40:54 -0500 Subject: [PATCH] Minor string change --- FileManager/UNTESTED/Configuration.cs | 5 +++-- .../UNTESTED/Dialogs/LibationFilesDialog.Designer.cs | 2 +- WinFormsDesigner/Dialogs/LibationFilesDialog.Designer.cs | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/FileManager/UNTESTED/Configuration.cs b/FileManager/UNTESTED/Configuration.cs index f38b4430..6060ba56 100644 --- a/FileManager/UNTESTED/Configuration.cs +++ b/FileManager/UNTESTED/Configuration.cs @@ -58,13 +58,14 @@ namespace FileManager 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 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")); private Dictionary wellKnownPaths { get; } = new Dictionary { - ["AppDir"] = AppDir, + [APP_DIR] = AppDir, ["MyDocs"] = MyDocs, ["WinTemp"] = WinTemp }; @@ -130,7 +131,7 @@ namespace FileManager { static string createSettingsJson() { - var dir = "AppDir"; + var dir = APP_DIR; File.WriteAllText(APPSETTINGS_JSON, new JObject { { LIBATION_FILES, dir } }.ToString(Formatting.Indented)); return dir; } diff --git a/LibationWinForms/UNTESTED/Dialogs/LibationFilesDialog.Designer.cs b/LibationWinForms/UNTESTED/Dialogs/LibationFilesDialog.Designer.cs index 88b8f762..ea0a8dc6 100644 --- a/LibationWinForms/UNTESTED/Dialogs/LibationFilesDialog.Designer.cs +++ b/LibationWinForms/UNTESTED/Dialogs/LibationFilesDialog.Designer.cs @@ -98,7 +98,7 @@ this.libationFilesRootRb.Size = new System.Drawing.Size(113, 30); this.libationFilesRootRb.TabIndex = 1; this.libationFilesRootRb.TabStop = true; - this.libationFilesRootRb.Text = "[desc]\r\n[exeRoot\\Libation]"; + this.libationFilesRootRb.Text = "[desc]\r\n[appDir\\Libation]"; this.libationFilesRootRb.UseVisualStyleBackColor = true; // // cancelBtn diff --git a/WinFormsDesigner/Dialogs/LibationFilesDialog.Designer.cs b/WinFormsDesigner/Dialogs/LibationFilesDialog.Designer.cs index 9f7636db..8baa07f6 100644 --- a/WinFormsDesigner/Dialogs/LibationFilesDialog.Designer.cs +++ b/WinFormsDesigner/Dialogs/LibationFilesDialog.Designer.cs @@ -97,7 +97,7 @@ this.libationFilesRootRb.Size = new System.Drawing.Size(113, 30); this.libationFilesRootRb.TabIndex = 1; this.libationFilesRootRb.TabStop = true; - this.libationFilesRootRb.Text = "[desc]\r\n[exeRoot\\Libation]"; + this.libationFilesRootRb.Text = "[desc]\r\n[appDir\\Libation]"; this.libationFilesRootRb.UseVisualStyleBackColor = true; // // cancelBtn