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 a73a213 commit 92ba6be
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 @@ -24,6 +24,6 @@
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("2.16")]
[assembly: AssemblyFileVersion("2.16")]
[assembly: AssemblyVersion("2.16.1")]
[assembly: AssemblyFileVersion("2.16.1")]
[assembly: Guid("5d5cc62b-d6f6-4e0b-a7ff-3d5ef21dd656")]
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 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 Down
2 changes: 1 addition & 1 deletion version.info
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:
PasswordChangeAssistant:2.16
PasswordChangeAssistant:2.16.1
PasswordChangeAssistant!de:11
PasswordChangeAssistant!it:3
PasswordChangeAssistant!pt:9
Expand Down

0 comments on commit 92ba6be

Please sign in to comment.