Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
Fixes #118
  • Loading branch information
Rookiestyle committed Nov 27, 2022
1 parent 0eae170 commit 0cfb7ae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/KeePassOTPExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ private void OnEntryContextMenuOpening(object sender, EventArgs e)
m_ContextMenuCopy.ShowShortcutKeys = true;
m_ContextMenuCopy.ShortcutKeyDisplayString = UIUtil.GetKeysName(m_MainMenuCopy.ShortcutKeys);
var iSelectedEntries = m_host.MainWindow.GetSelectedEntriesCount();
if (m_host.MainWindow.GetSelectedEntriesCount() != 1)
SetEnabled(iSelectedEntries != 0, m_ContextMenu, m_MainMenu);
if (iSelectedEntries == 0) return;
else if (iSelectedEntries > 1)
{
SetEnabled(false, m_ContextMenuAutotype, m_MainMenuAutotype, m_ContextMenuCopy, m_ContextMenuSetup, m_MainMenuCopy, m_MainMenuSetup);
bool bEnableQR = false;
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.6")]
[assembly: AssemblyFileVersion("1.6")]
[assembly: AssemblyVersion("1.6.1")]
[assembly: AssemblyFileVersion("1.6.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.6
KeePassOTP:1.6.1
KeePassOTP!de:23
KeePassOTP!fr:7
KeePassOTP!nl:3
Expand Down

0 comments on commit 0cfb7ae

Please sign in to comment.