Skip to content

Commit 9ca60ba

Browse files
committed
ENH: show dependencies versions in about dialog even when N/A (not installed)
the fact that an (optional) dependency is missing is important information (it is often more important than actual versions of dependencies) and should be shown explicitly
1 parent 84c0c67 commit 9ca60ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

larray_editor/editor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,7 @@ def about(self):
270270
<li>Python {python} on {system} {bitness:d}bits</li>
271271
"""
272272
for dep in dependencies['editor']:
273-
if kwargs[dep] != 'N/A':
274-
message += f"<li>{dep} {{{dep}}}</li>\n"
273+
message += f"<li>{dep} {kwargs[dep]}</li>\n"
275274
message += "</ul>"
276275
QMessageBox.about(self, _("About LArray Editor"), message.format(**kwargs))
277276

0 commit comments

Comments
 (0)