mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +02:00
[view] fix: not displaying boolean fields (info)
This commit is contained in:
@@ -75,6 +75,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
|
|
||||||
- UI
|
- UI
|
||||||
- some package icons would not appear if there is no URL associated with them
|
- 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
|
## [0.9.28] 2022-02-14
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ class InfoDialog(QDialog):
|
|||||||
self.setWindowIcon(QIcon(pkg_info['__app__'].model.get_type_icon_path()))
|
self.setWindowIcon(QIcon(pkg_info['__app__'].model.get_type_icon_path()))
|
||||||
|
|
||||||
for idx, attr in enumerate(sorted(pkg_info.keys())):
|
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()
|
i18n_key = pkg_info['__app__'].model.gem_name + '.info.' + attr.lower()
|
||||||
val = pkg_info[attr]
|
val = pkg_info[attr]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user