mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Fixed bug with file saving
This commit is contained in:
parent
709ebd4ca9
commit
d03522cc5c
1 changed files with 2 additions and 3 deletions
|
|
@ -1037,11 +1037,10 @@ private void customRTB_DragDrop(object sender, DragEventArgs e)
|
|||
var list = fname as string[];
|
||||
if (list != null && !string.IsNullOrWhiteSpace(list[0]))
|
||||
{
|
||||
string opnfile = File.ReadAllText(OpenFile.FileName);
|
||||
string NameWithotPath = Path.GetFileName(OpenFile.FileName);
|
||||
|
||||
if (!OpenFile.FileName.Contains(".cnp"))
|
||||
{
|
||||
string opnfile = File.ReadAllText(OpenFile.FileName);
|
||||
string NameWithotPath = Path.GetFileName(OpenFile.FileName);
|
||||
customRTB.Text = opnfile;
|
||||
this.Text = appName + NameWithotPath;
|
||||
string cc2 = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);
|
||||
|
|
|
|||
Loading…
Reference in a new issue