From d988b1fc36554235b769cd0a0af5d0698370ca47 Mon Sep 17 00:00:00 2001 From: Alexander Date: Thu, 6 Dec 2018 14:53:01 +0200 Subject: [PATCH] Fixed bug with auto-save on lock --- Crypto Notepad/Form1.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Crypto Notepad/Form1.cs b/Crypto Notepad/Form1.cs index bb6cf1c..cc9864f 100644 --- a/Crypto Notepad/Form1.cs +++ b/Crypto Notepad/Form1.cs @@ -106,6 +106,10 @@ void DecryptAES() { DecryptAES(); } + if (dialogResult == DialogResult.Cancel) + { + publicVar.encryptionKey.Set(null); + } } } }