11261:141060a924a6 | 11262:07d9cc8d773c |
---|---|
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 ) | |
60 | |
61 self.initColour( | 57 self.initColour( |
62 "DependencyHighlightColor", | 58 "DependencyHighlightColor", |
63 self.searchMarkerColourButton, | 59 self.searchMarkerColourButton, |
64 Preferences.getPip, | 60 Preferences.getPip, |
65 ) | 61 ) |
84 Preferences.setPip( | 80 Preferences.setPip( |
85 "VulnerabilityDbCacheValidity", self.validitySpinBox.value() * 3600 | 81 "VulnerabilityDbCacheValidity", self.validitySpinBox.value() * 3600 |
86 ) | 82 ) |
87 # hours converted to seconds | 83 # hours converted to seconds |
88 | 84 |
89 Preferences.setPip( | |
90 "ExcludeGlobalEnvironments", self.noGlobalsCheckBox.isChecked() | |
91 ) | |
92 | |
93 self.saveColours(Preferences.setPip) | 85 self.saveColours(Preferences.setPip) |
94 | 86 |
95 | 87 |
96 def create(_dlg): | 88 def create(_dlg): |
97 """ | 89 """ |