From 2d425054b491296fe8877385dee3c870712122bf Mon Sep 17 00:00:00 2001 From: d0vgan Date: Thu, 10 Dec 2020 20:01:58 +0200 Subject: [PATCH] Reading the Hash Keys from a file, allowing commented lines --- SharpKeys/Dialog_Main.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SharpKeys/Dialog_Main.cs b/SharpKeys/Dialog_Main.cs index 34d4e23..13e7711 100644 --- a/SharpKeys/Dialog_Main.cs +++ b/SharpKeys/Dialog_Main.cs @@ -850,6 +850,9 @@ private bool ReadHashKeysFromFile(string pathToKeysFile) foreach (string line in lines) { + if (line.TrimStart().StartsWith("//")) + continue; // skipping a comment + string[] items = line.Split(new char[]{','}, 2); if (items.GetLength(0) == 2) {