[view] fix: not displaying boolean fields (info)

This commit is contained in:
Vinicius Moreira
2022-03-12 11:17:32 -03:00
parent 3edacd75f4
commit 09e9895d12
2 changed files with 2 additions and 1 deletions

View File

@@ -75,6 +75,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- UI
- some package icons would not appear if there is no URL associated with them
- info: not displaying boolean fields
## [0.9.28] 2022-02-14

View File

@@ -53,7 +53,7 @@ class InfoDialog(QDialog):
self.setWindowIcon(QIcon(pkg_info['__app__'].model.get_type_icon_path()))
for idx, attr in enumerate(sorted(pkg_info.keys())):
if attr not in IGNORED_ATTRS and pkg_info[attr]:
if attr not in IGNORED_ATTRS and pkg_info[attr] is not None:
i18n_key = pkg_info['__app__'].model.gem_name + '.info.' + attr.lower()
val = pkg_info[attr]