Skip to content

Commit a99f564

Browse files
committed
Add compatibility to KeePass 2.55
Ensure plugin versions are shown in plugin overview
1 parent 269ce9e commit a99f564

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ KeePass types EITHER everything before OR everything after {AAT}.
2727
//
2828
// You can specify all the values or you can use the default the Revision and
2929
// Build Numbers by using the '*' as shown below:
30-
[assembly: AssemblyVersion("2.1.1")]
31-
[assembly: AssemblyFileVersion("2.1.1")]
30+
[assembly: AssemblyVersion("2.1.2")]
31+
[assembly: AssemblyFileVersion("2.1.2")]
3232
[assembly: Guid("78C152F3-EAF8-4FFC-9BE3-F5DC0CD66E5D")]
3333

src/Utilities/Tools_Options.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public static object GetPluginInstance(string PluginName)
1717
{
1818
var PluginManager = GetField("m_pluginManager", KeePass.Program.MainForm);
1919
var PluginList = GetField("m_vPlugins", PluginManager);
20+
if (PluginList == null) PluginList = GetField("m_lPlugins", PluginManager);
2021
MethodInfo IteratorMethod = PluginList.GetType().GetMethod("System.Collections.Generic.IEnumerable<T>.GetEnumerator", bf);
2122
IEnumerator<object> PluginIterator = (IEnumerator<object>)(IteratorMethod.Invoke(PluginList, null));
2223
while (PluginIterator.MoveNext())
@@ -38,6 +39,7 @@ public static Dictionary<string, Version> GetLoadedPluginsName()
3839
{
3940
var PluginManager = GetField("m_pluginManager", KeePass.Program.MainForm);
4041
var PluginList = GetField("m_vPlugins", PluginManager);
42+
if (PluginList == null) PluginList = GetField("m_lPlugins", PluginManager);
4143
MethodInfo IteratorMethod = PluginList.GetType().GetMethod("System.Collections.Generic.IEnumerable<T>.GetEnumerator", bf);
4244
IEnumerator<object> PluginIterator = (IEnumerator<object>)(IteratorMethod.Invoke(PluginList, null));
4345
while (PluginIterator.MoveNext())

version.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:
22
AlternateAutoType:1.20
3-
Advanced Auto-Type:2.1.1
3+
Advanced Auto-Type:2.1.2
44
Advanced Auto-Type!de:8
55
Advanced Auto-Type!pt:4
66
Advanced Auto-Type!ru:5

0 commit comments

Comments
 (0)