34 __header__ = { |
34 __header__ = { |
35 "name": "pipx Interface", |
35 "name": "pipx Interface", |
36 "author": "Detlev Offenbach <detlev@die-offenbachs.de>", |
36 "author": "Detlev Offenbach <detlev@die-offenbachs.de>", |
37 "autoactivate": True, |
37 "autoactivate": True, |
38 "deactivateable": True, |
38 "deactivateable": True, |
39 "version": "10.1.1", |
39 "version": "10.2.0", |
40 "className": "PluginPipxInterface", |
40 "className": "PluginPipxInterface", |
41 "packageName": "PipxInterface", |
41 "packageName": "PipxInterface", |
42 "shortDescription": "Graphical interface to the 'pipx' command.", |
42 "shortDescription": "Graphical interface to the 'pipx' command.", |
43 "longDescription": ( |
43 "longDescription": ( |
44 "Plugin implementing widgets and dialogues to interact with the various pipx" |
44 "Plugin implementing widgets and dialogues to interact with the various pipx" |
147 """ |
147 """ |
148 super().__init__(ui) |
148 super().__init__(ui) |
149 self.__ui = ui |
149 self.__ui = ui |
150 self.__initialize() |
150 self.__initialize() |
151 |
151 |
152 # TODO: add option to check outdated dependencies when checking for |
|
153 # outdated status |
|
154 self.__defaults = { |
152 self.__defaults = { |
155 "RecentAppWorkdirs": [], |
153 "RecentAppWorkdirs": [], |
156 "MaxRecentAppWorkdirs": 20, |
154 "MaxRecentAppWorkdirs": 20, |
|
155 "IncludeOutdatedDependencies": True, |
|
156 "AutoCheckOutdated": False, |
157 } |
157 } |
158 |
158 |
159 self.__translator = None |
159 self.__translator = None |
160 self.__loadTranslator() |
160 self.__loadTranslator() |
161 |
161 |
282 return int( |
282 return int( |
283 Preferences.Prefs.settings.value( |
283 Preferences.Prefs.settings.value( |
284 self.PreferencesKey + "/" + key, self.__defaults[key] |
284 self.PreferencesKey + "/" + key, self.__defaults[key] |
285 ) |
285 ) |
286 ) |
286 ) |
|
287 elif key in ("IncludeOutdatedDependencies", "AutoCheckOutdated"): |
|
288 return Globals.toBool( |
|
289 Preferences.Prefs.settings.value( |
|
290 self.PreferencesKey + "/" + key, self.__defaults[key] |
|
291 ) |
|
292 ) |
|
293 else: |
|
294 return Preferences.Prefs.settings.value( |
|
295 self.PreferencesKey + "/" + key, self.__defaults[key] |
|
296 ) |
287 |
297 |
288 return None |
298 return None |
289 |
299 |
290 def setPreferences(self, key, value): |
300 def setPreferences(self, key, value): |
291 """ |
301 """ |