From fa8e38efefec70ac8ae97c55f69fa6c98494581b Mon Sep 17 00:00:00 2001 From: d0vgan Date: Thu, 10 Dec 2020 19:48:29 +0200 Subject: [PATCH] Reading the Hash Keys from a file, small update --- SharpKeys/Dialog_Main.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/SharpKeys/Dialog_Main.cs b/SharpKeys/Dialog_Main.cs index c2fb262..858c369 100644 --- a/SharpKeys/Dialog_Main.cs +++ b/SharpKeys/Dialog_Main.cs @@ -890,16 +890,12 @@ private bool ReadHashKeysFromFile(string pathToKeysFile) n = param2.IndexOf("//", n); if (n != -1) { - param2 = param2.Remove(n); - param2 = param2.TrimEnd(); + param2 = param2.Remove(n).TrimEnd(); } } - param2 = UnquoteString(param2); - param2 = Regex.Unescape(param2); - - param1 = UnquoteString(param1); - param1 = Regex.Unescape(param1); + param2 = Regex.Unescape(UnquoteString(param2)); + param1 = Regex.Unescape(UnquoteString(param1)); m_hashKeys.Add(param1, param2); }