From 9e5f76696290545076b66c85aaa1a0b179bf81f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miskolczi=20Rich=C3=A1rd?= Date: Sun, 2 Apr 2023 22:32:26 +0200 Subject: [PATCH] Code refactoring --- Common/ConfigFileManager.cs | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Common/ConfigFileManager.cs b/Common/ConfigFileManager.cs index 8118a19..ec6437b 100644 --- a/Common/ConfigFileManager.cs +++ b/Common/ConfigFileManager.cs @@ -5,21 +5,21 @@ namespace Common; public static class ConfigFileManager { #region Config flags - /*Configuration: (format: fieldname=value) + /*Configuration: (format: fieldname=value) - password_store_path: path to the folder which contains the .gpg files - recipient: whose public key to use for encryption when a new password is created - */ - private static string CONFIGPATH = SpecialDirectories.CurrentUserApplicationData + "\\config.cfg"; - private static char DELIMETER = '='; - private static string RECIPIENT = "recipient"; - private static string PATH = "password_store_path"; + password_store_path: path to the folder which contains the .gpg files + recipient: whose public key to use for encryption when a new password is created + */ + private static string CONFIGPATH = SpecialDirectories.CurrentUserApplicationData + "\\config.cfg"; + private static char DELIMETER = '='; + private static string RECIPIENT = "recipient"; + private static string PATH = "password_store_path"; #endregion - private static Config Configuration; + private static Config Configuration; - public static void Init() - { + public static void Init() + { bool success = false; while (!success) @@ -63,17 +63,17 @@ public static class ConfigFileManager CreateDefaultConfig(); } } - } + } public static string GetPath() { - return Configuration.PasswordStorePath; + return Configuration.PasswordStorePath; } - public static string GetRecipient() - { - return Configuration.Recipient; - } + public static string GetRecipient() + { + return Configuration.Recipient; + } private static void CreateDefaultConfig() {