Skip to content

Commit

Permalink
Add compatibility to KeePass 2.55
Browse files Browse the repository at this point in the history
Ensure plugin versions are shown in plugin overview
  • Loading branch information
Rookiestyle committed Oct 14, 2023
1 parent ae9270b commit 38e293e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
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.6")]
[assembly: AssemblyFileVersion("1.6.6")]
[assembly: AssemblyVersion("1.6.7")]
[assembly: AssemblyFileVersion("1.6.7")]
2 changes: 2 additions & 0 deletions src/Utilities/Tools_Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public static object GetPluginInstance(string PluginName)
{
var PluginManager = GetField("m_pluginManager", KeePass.Program.MainForm);
var PluginList = GetField("m_vPlugins", PluginManager);
if (PluginList == null) PluginList = GetField("m_lPlugins", PluginManager);
MethodInfo IteratorMethod = PluginList.GetType().GetMethod("System.Collections.Generic.IEnumerable<T>.GetEnumerator", bf);
IEnumerator<object> PluginIterator = (IEnumerator<object>)(IteratorMethod.Invoke(PluginList, null));
while (PluginIterator.MoveNext())
Expand All @@ -38,6 +39,7 @@ public static Dictionary<string, Version> GetLoadedPluginsName()
{
var PluginManager = GetField("m_pluginManager", KeePass.Program.MainForm);
var PluginList = GetField("m_vPlugins", PluginManager);
if (PluginList == null) PluginList = GetField("m_lPlugins", PluginManager);
MethodInfo IteratorMethod = PluginList.GetType().GetMethod("System.Collections.Generic.IEnumerable<T>.GetEnumerator", bf);
IEnumerator<object> PluginIterator = (IEnumerator<object>)(IteratorMethod.Invoke(PluginList, null));
while (PluginIterator.MoveNext())
Expand Down
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.6
KeePassOTP:1.6.7
KeePassOTP!de:23
KeePassOTP!fr:7
KeePassOTP!nl:3
Expand Down

0 comments on commit 38e293e

Please sign in to comment.