From 518d3325c92eb6f53651be5669e91028560b85fa Mon Sep 17 00:00:00 2001 From: Samweli Date: Fri, 29 Sep 2023 09:42:31 +0300 Subject: [PATCH] show the exact item id in the title when there are no assets in the item --- src/qgis_stac/gui/assets_dialog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qgis_stac/gui/assets_dialog.py b/src/qgis_stac/gui/assets_dialog.py index 744078e..3dfbe9b 100644 --- a/src/qgis_stac/gui/assets_dialog.py +++ b/src/qgis_stac/gui/assets_dialog.py @@ -105,7 +105,7 @@ def prepare_assets(self): if len(self.assets) > 0: self.title.setText( tr("Item {}"). - format(self.item.id, len(self.assets)) + format(self.item.id) ) self.asset_count.setText( tr("{} available asset(s)"). @@ -115,7 +115,7 @@ def prepare_assets(self): else: self.title.setText( tr("Item {} has no assets"). - format(len(self.item.id)) + format(self.item.id) ) scroll_container = QtWidgets.QWidget()