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 0aafe6b commit c237cf8
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 @@ -32,5 +32,5 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.15.3")]
[assembly: AssemblyFileVersion("0.15.3")]
[assembly: AssemblyVersion("0.15.4")]
[assembly: AssemblyFileVersion("0.15.4")]
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 @@
:
ColoredPassword:0.15.3
ColoredPassword:0.15.4
ColoredPassword!de:7
ColoredPassword!pl:2
ColoredPassword!pt:3
Expand Down

0 comments on commit c237cf8

Please sign in to comment.