PluginPrintRemover.py

changeset 44
fd83cf39e27d
parent 42
f97a2aaeb66d
child 46
ed00e012bd5c
diff -r a92674b29114 -r fd83cf39e27d PluginPrintRemover.py
--- a/PluginPrintRemover.py	Thu Mar 30 19:27:14 2017 +0200
+++ b/PluginPrintRemover.py	Sun Apr 23 17:40:27 2017 +0200
@@ -23,7 +23,7 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "2.1.1"
+version = "2.1.2"
 className = "PrintRemoverPlugin"
 packageName = "PrintRemover"
 shortDescription = "Remove print() like debug statements."
@@ -63,16 +63,13 @@
     
     @return dictionary containing the relevant data
     """
-    if e5App().getObject("UserInterface").versionIsNewer('5.2.99', '20121012'):
-        return {
-            "printRemoverPage": [
-                QCoreApplication.translate("PrintRemoverPlugin",
-                                           "Print Remover"),
-                os.path.join("PrintRemover", "icons", "printRemover.png"),
-                createPrintRemoverPage, None, None],
-        }
-    else:
-        return {}
+    return {
+        "printRemoverPage": [
+            QCoreApplication.translate("PrintRemoverPlugin",
+                                       "Print Remover"),
+            os.path.join("PrintRemover", "icons", "printRemover.png"),
+            createPrintRemoverPage, None, None],
+    }
 
 
 def prepareUninstall():

eric ide

mercurial