Skip to content

Commit

Permalink
Minor bugfixes
Browse files Browse the repository at this point in the history
Fix empty Google Authenticator Export window in case of locked OTP db
Fix  UI issues in Google Authenticator Export

Closes #100
  • Loading branch information
Rookiestyle committed Feb 21, 2022
1 parent a1aed0a commit eb44f1d
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 12 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ private void lvEntries_ItemChecked(object sender, ItemCheckedEventArgs e)

private void GoogleAuthenticatorImportSelection_Shown(object sender, EventArgs e)
{
chGroup.Width = chEntry.Width = lvEntries.ClientSize.Width / 2;
lvEntries.Height = ClientSize.Height - pDesc.Height - pButtons.Height - Padding.Top - Padding.Bottom;
lvEntries.Width = ClientSize.Width - Padding.Left - Padding.Right;
lvEntries.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);

if (bSelectAll.Width > bDeselectAll.Width) bDeselectAll.Width = bSelectAll.Width;
if (bDeselectAll.Width > bSelectAll.Width) bSelectAll.Width = bDeselectAll.Width;
Expand Down
10 changes: 5 additions & 5 deletions src/KeePassOTP.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,17 @@
<Compile Include="DAO\OTPDAO_DB.cs" />
<Compile Include="DAO\OTPDAO_Entry.cs" />
<Compile Include="DAO\OTPDAO.cs" />
<Compile Include="GoogleAuthenticatorImport\GoogleAuthenticatorImport.cs" />
<Compile Include="GoogleAuthenticatorImport\GoogleAuthenticatorExportSelection.cs">
<Compile Include="GoogleAuthenticator\GoogleAuthenticatorImport.cs" />
<Compile Include="GoogleAuthenticator\GoogleAuthenticatorExportSelection.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="GoogleAuthenticatorImport\GoogleAuthenticatorExportSelection.Designer.cs">
<Compile Include="GoogleAuthenticator\GoogleAuthenticatorExportSelection.Designer.cs">
<DependentUpon>GoogleAuthenticatorExportSelection.cs</DependentUpon>
</Compile>
<Compile Include="GoogleAuthenticatorImport\GoogleAuthenticatorImportSelection.cs">
<Compile Include="GoogleAuthenticator\GoogleAuthenticatorImportSelection.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="GoogleAuthenticatorImport\GoogleAuthenticatorImportSelection.Designer.cs">
<Compile Include="GoogleAuthenticator\GoogleAuthenticatorImportSelection.Designer.cs">
<DependentUpon>GoogleAuthenticatorImportSelection.cs</DependentUpon>
</Compile>
<Compile Include="HotkeyManager.cs" />
Expand Down
1 change: 1 addition & 0 deletions src/KeePassOTPExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,7 @@ private void OnGoogleAuthenticatorExport(object sender, EventArgs e)
m_host.Database.RootGroup.TraverseTree(TraversalMethod.PreOrder, null, eh);

lMsg.Add("Exportable entries: " + dEntries.Where(x => x.Value != null).Count().ToString());
if (dEntries.Count == 0) return;

using (var selForm = new GoogleAuthenticatorExportSelection())
{
Expand Down
4 changes: 2 additions & 2 deletions src/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.3")]
[assembly: AssemblyFileVersion("1.3")]
[assembly: AssemblyVersion("1.3.1")]
[assembly: AssemblyFileVersion("1.3.1")]
2 changes: 1 addition & 1 deletion version.info
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:
KeePassOTP:1.3
KeePassOTP:1.3.1
KeePassOTP!de:23
KeePassOTP!fr:7
KeePassOTP!nl:3
Expand Down

0 comments on commit eb44f1d

Please sign in to comment.