Skip to content

Commit

Permalink
Added missing files to plgx script
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaifm committed Feb 8, 2019
1 parent 6245b1a commit 8a6340d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions HIBPOfflineCheck.csproj
Expand Up @@ -31,6 +31,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<LangVersion>5</LangVersion>
</PropertyGroup>
<ItemGroup>
<Reference Include="KeePass">
Expand Down
7 changes: 3 additions & 4 deletions HIBPOfflineCheckOptions.cs
Expand Up @@ -3,7 +3,6 @@
using KeePassLib;
using System;
using System.Windows.Forms;
using static HIBPOfflineCheck.Options;

namespace HIBPOfflineCheck
{
Expand All @@ -28,8 +27,8 @@ private void HIBPOfflineCheckOptions_Load(object sender, EventArgs e)

options = ext.LoadOptions();

radioButtonOffline.Checked = (options.CheckMode == CheckModeType.Offline);
radioButtonOnline.Checked = (options.CheckMode == CheckModeType.Online);
radioButtonOffline.Checked = (options.CheckMode == Options.CheckModeType.Offline);
radioButtonOnline.Checked = (options.CheckMode == Options.CheckModeType.Online);
textBoxFileName.Text = options.HIBPFileName;
textBoxColumnName.Text = options.ColumnName;
textBoxSecureText.Text = options.SecureText;
Expand All @@ -46,7 +45,7 @@ private void HIBPOfflineCheckOptions_Load(object sender, EventArgs e)

private void buttonOK_Click(object sender, EventArgs e)
{
options.CheckMode = radioButtonOffline.Checked ? CheckModeType.Offline : CheckModeType.Online;
options.CheckMode = radioButtonOffline.Checked ? Options.CheckModeType.Offline : Options.CheckModeType.Online;
options.HIBPFileName = textBoxFileName.Text;
options.ColumnName = textBoxColumnName.Text;
options.SecureText = textBoxSecureText.Text;
Expand Down
5 changes: 4 additions & 1 deletion HIBPOfflineColumnProv.cs
Expand Up @@ -31,7 +31,10 @@ public HIBPOfflineColumnProv()
HIBPOfflineCheckExt.Host.MainWindow.EntryContextMenu.Opening += ContextMenuStrip_Opening;
}

public override string[] ColumnNames => new [] { PluginOptions.ColumnName };
public override string[] ColumnNames
{
get { return new string[] { PluginOptions.ColumnName }; }
}

public override bool SupportsCellAction(string strColumnName)
{
Expand Down
6 changes: 5 additions & 1 deletion Util/build_plgx.bat
Expand Up @@ -9,12 +9,16 @@ xcopy /Y %PluginRoot%\HIBPOfflineCheckExt.cs plgx\
xcopy /Y %PluginRoot%\HIBPOfflineCheckOptions.cs plgx\
xcopy /Y %PluginRoot%\HIBPOfflineCheckOptions.Designer.cs plgx\
xcopy /Y %PluginRoot%\HIBPOfflineCheckOptions.resx plgx\
xcopy /Y %PluginRoot%\HIBPOfflineColumnProv.cs plgx\
xcopy /Y %PluginRoot%\ProgressDisplay.cs plgx\
xcopy /Y %PluginRoot%\ProgressDisplay.Designer.cs plgx\
xcopy /Y %PluginRoot%\ProgressDisplay.resx plgx\
xcopy /Y %PluginRoot%\Options.cs plgx\
xcopy /Y %PluginRoot%\Resources\Nuvola\B48x48_KOrganizer.png plgx\Resources\Nuvola\
xcopy /Y %PluginRoot%\Properties\Resources.Designer.cs plgx\Properties\
xcopy /Y %PluginRoot%\Properties\Resources.resx plgx\Properties\

%KeePassExe% --plgx-create "%BuildPath%plgx"
%KeePassExe% --plgx-create "%BuildPath%plgx" --plgx-prereq-net:4.5

move /Y "%BuildPath%plgx.plgx" %PluginRoot%\HIBPOfflineCheck.plgx

Expand Down

0 comments on commit 8a6340d

Please sign in to comment.