52 self.validitySpinBox.setValue( |
52 self.validitySpinBox.setValue( |
53 Preferences.getPip("VulnerabilityDbCacheValidity") // 3600 |
53 Preferences.getPip("VulnerabilityDbCacheValidity") // 3600 |
54 ) |
54 ) |
55 # seconds converted to hours |
55 # seconds converted to hours |
56 |
56 |
|
57 self.noGlobalsCheckBox.setChecked( |
|
58 Preferences.getPip("ExcludeGlobalEnvironments") |
|
59 ) |
57 self.noCondaCheckBox.setChecked(Preferences.getPip("ExcludeCondaEnvironments")) |
60 self.noCondaCheckBox.setChecked(Preferences.getPip("ExcludeCondaEnvironments")) |
58 |
61 |
59 def save(self): |
62 def save(self): |
60 """ |
63 """ |
61 Public slot to save the pip configuration. |
64 Public slot to save the pip configuration. |
76 Preferences.setPip( |
79 Preferences.setPip( |
77 "VulnerabilityDbCacheValidity", self.validitySpinBox.value() * 3600 |
80 "VulnerabilityDbCacheValidity", self.validitySpinBox.value() * 3600 |
78 ) |
81 ) |
79 # hours converted to seconds |
82 # hours converted to seconds |
80 |
83 |
|
84 Preferences.setPip( |
|
85 "ExcludeGlobalEnvironments", self.noGlobalsCheckBox.isChecked() |
|
86 ) |
81 Preferences.setPip("ExcludeCondaEnvironments", self.noCondaCheckBox.isChecked()) |
87 Preferences.setPip("ExcludeCondaEnvironments", self.noCondaCheckBox.isChecked()) |
82 |
88 |
83 |
89 |
84 def create(_dlg): |
90 def create(_dlg): |
85 """ |
91 """ |