Append additional dropped files (don't clear text area)

This commit is contained in:
Nicolò P 2024-01-17 11:28:24 +01:00
parent 4e7fd92a13
commit 82c2bc6ce2
3 changed files with 4 additions and 4 deletions

View File

@ -55,7 +55,7 @@ namespace Txt2Bib
if (dataObject.ContainsFileDropList())
{
// Clear values
DropArea.Text = string.Empty;
if (DropArea.Text == InitialDropText) DropArea.Text = string.Empty;
// Process file names
var fileNames = dataObject.GetFileDropList();
@ -65,7 +65,7 @@ namespace Txt2Bib
bd.Append(fileName + "\n");
}
// Set text
DropArea.Text = bd.ToString();
DropArea.Text += bd.ToString();
}
}

View File

@ -15,7 +15,7 @@ namespace Txt2Bib
/// </summary>
public class Text2Bib
{
private string[] _citTypes = { "J", "B", "C", "P" };
private readonly string[] _citTypes = { "J", "B", "C", "P" };
/// <summary>
/// Generate single .bib file from input text files

View File

@ -5,7 +5,7 @@
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<Version>0.1.2</Version>
<Version>0.1.4</Version>
</PropertyGroup>
<ItemGroup>