mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Changed the name of the variable.
This commit is contained in:
parent
ef7cb366ce
commit
a7bda6495c
1 changed files with 3 additions and 4 deletions
|
|
@ -852,12 +852,11 @@ private void RichTextBox_DragDrop(object sender, DragEventArgs e)
|
|||
}
|
||||
string[] FileList = (string[])e.Data.GetData(DataFormats.FileDrop, false);
|
||||
foreach (string file in FileList) openFileDialog.FileName = file;
|
||||
object fname = e.Data.GetData("FileDrop");
|
||||
object fileName = e.Data.GetData("FileDrop");
|
||||
PublicVar.openFileName = Path.GetFileName(openFileDialog.FileName);
|
||||
if (fname != null)
|
||||
if (fileName != null)
|
||||
{
|
||||
var list = fname as string[];
|
||||
if (list != null && !string.IsNullOrWhiteSpace(list[0]))
|
||||
if (fileName is string[] list && !string.IsNullOrWhiteSpace(list[0]))
|
||||
{
|
||||
if (!openFileDialog.FileName.Contains(".cnp"))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue