PluginPipxInterface.py

changeset 32
b7a3ae7519ba
parent 31
17e37d4ebe42
child 36
5b9bc68ef028
--- a/PluginPipxInterface.py	Sat Jul 27 19:39:32 2024 +0200
+++ b/PluginPipxInterface.py	Sun Jul 28 11:46:18 2024 +0200
@@ -36,7 +36,7 @@
     "author": "Detlev Offenbach <detlev@die-offenbachs.de>",
     "autoactivate": True,
     "deactivateable": True,
-    "version": "10.1.1",
+    "version": "10.2.0",
     "className": "PluginPipxInterface",
     "packageName": "PipxInterface",
     "shortDescription": "Graphical interface to the 'pipx' command.",
@@ -149,11 +149,11 @@
         self.__ui = ui
         self.__initialize()
 
-        # TODO: add option to check outdated dependencies when checking for
-        #       outdated status
         self.__defaults = {
             "RecentAppWorkdirs": [],
             "MaxRecentAppWorkdirs": 20,
+            "IncludeOutdatedDependencies": True,
+            "AutoCheckOutdated": False,
         }
 
         self.__translator = None
@@ -284,6 +284,16 @@
                     self.PreferencesKey + "/" + key, self.__defaults[key]
                 )
             )
+        elif key in ("IncludeOutdatedDependencies", "AutoCheckOutdated"):
+            return Globals.toBool(
+                Preferences.Prefs.settings.value(
+                    self.PreferencesKey + "/" + key,  self.__defaults[key]
+                )
+            )
+        else:
+            return Preferences.Prefs.settings.value(
+                self.PreferencesKey + "/" + key,  self.__defaults[key]
+            )
 
         return None
 

eric ide

mercurial