From 45e8fafb26ce583d33a73e527182939888f299d2 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 858c369..c7fd7f7 100644 --- a/SharpKeys/Dialog_Main.cs +++ b/SharpKeys/Dialog_Main.cs @@ -877,6 +877,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) {