From 9d4734403bf56f3636b98aa6134a0b6fcceb2210 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Tue, 9 Mar 2010 12:49:25 +0000 Subject: [PATCH] Add message if addon has wrong version. svn: r14710 --- src/PluginUtils/_PluginWindows.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/PluginUtils/_PluginWindows.py b/src/PluginUtils/_PluginWindows.py index e57eee874..f0287daf5 100644 --- a/src/PluginUtils/_PluginWindows.py +++ b/src/PluginUtils/_PluginWindows.py @@ -569,6 +569,11 @@ class PluginStatus(ManagedWindow.ManagedWindow): # If this version is not installed, or > installed, install it good_gpr.add(gpr_file) callback(" " + (_("'%s' is for this version of Gramps.") % gpr_file) + "\n") + else: + # If the plugin is for another version; inform and do nothing + callback(" " + (_("'%s' is for NOT this version of Gramps.") % gpr_file) + "\n") + callback(" " + (_("It is for version %d.%d" % vtup) + "\n")) + continue else: # another register function doesn't have gramps_target_version if gpr_file in good_gpr: