From 1732efbc065ff16db021eb70d59f3de7e643721f Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 17 Dec 2018 15:03:08 +0200 Subject: [PATCH] Fixed bug when the app did not close --- Crypto Notepad/MainForm.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Crypto Notepad/MainForm.cs b/Crypto Notepad/MainForm.cs index e1ffb92..90c8343 100644 --- a/Crypto Notepad/MainForm.cs +++ b/Crypto Notepad/MainForm.cs @@ -447,7 +447,7 @@ public void ContextMenuEncryptReplace() if (res == DialogResult.Cancel) { - Application.Exit(); + Environment.Exit(0); } if (!args[1].Contains(".cnp")) @@ -950,7 +950,7 @@ private void findToolStripMenuItem2_Click(object sender, EventArgs e) private void documentationToolStripMenuItem_Click(object sender, EventArgs e) { //Process.Start("https://github.com/Sigmanor/Crypto-Notepad/wiki/Documentation"); - MessageBox.Show("currentFilename: "+ currentFilename); + MessageBox.Show("currentFilename: " + currentFilename); MessageBox.Show("encryptionKey: " + PublicVar.encryptionKey.Get()); MessageBox.Show("TypedPassword: " + TypedPassword.Value); MessageBox.Show("filePath: " + filePath);