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 12a8bd8 commit 0a568fa
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("1.3")]
[assembly: AssemblyFileVersion("1.3")]
[assembly: AssemblyVersion("1.3.1")]
[assembly: AssemblyFileVersion("1.3.1")]
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 @@
:
GlobalSearch:1.3
GlobalSearch:1.3.1
GlobalSearch!de:4
GlobalSearch!pt:3
GlobalSearch!zh:1
Expand Down

0 comments on commit 0a568fa

Please sign in to comment.