Fixed bug when the file save window did not close

This commit is contained in:
Alexander 2019-10-15 20:22:53 +03:00
parent a7bda6495c
commit c7240f5849

View file

@ -1,4 +1,4 @@
using Crypto_Notepad.Properties;
using Crypto_Notepad.Properties;
using System;
using System.ComponentModel;
using System.Diagnostics;
@ -1026,6 +1026,11 @@ private void SaveAsMainMenu_Click(object sender, EventArgs e)
if (string.IsNullOrEmpty(PublicVar.encryptionKey.Get()))
{
enterKeyForm.ShowDialog();
if (!PublicVar.okPressed)
{
PublicVar.openFileName = Path.GetFileName(filePath);
return;
}
}
if (saveFileDialog.ShowDialog() != DialogResult.OK)
{