mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Fixed bug when the file save window did not close
This commit is contained in:
parent
a7bda6495c
commit
c7240f5849
1 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue