Skip to content

Commit

Permalink
Make plugin plgx compatible
Browse files Browse the repository at this point in the history
* Removed references that prevented plgx compilation.
* Changed some C# syntax to be compatible with pre 6.0 C#
* Added plgx file for download.
  • Loading branch information
arbrown committed Jul 27, 2016
1 parent 5a13a89 commit b9c9635
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
Binary file added KPUsage.plgx
Binary file not shown.
5 changes: 0 additions & 5 deletions KPUsage/KPUsage.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,9 @@
<HintPath>..\..\KeePass2.x\KeePass\obj\Debug\KeePass.exe</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
Expand Down
3 changes: 1 addition & 2 deletions KPUsage/KPUsagePlugin.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Text;
using KeePass.Plugins;
using KeePassLib;
using System.Windows.Forms;
Expand Down Expand Up @@ -86,7 +85,7 @@ private void ExportUsageMenuItem_Click(object sender, EventArgs e)
var count = kvp.Key;
foreach (var entry in kvp.Value)
{
file.WriteLine($"\"{entry.Strings.ReadSafe(PwDefs.TitleField)}\", {count}");
file.WriteLine(entry.Strings.ReadSafe(PwDefs.TitleField) + "," + count );
}
}
}
Expand Down

0 comments on commit b9c9635

Please sign in to comment.