Count the number of packages which have a license to display

CURA-7155
This commit is contained in:
Nino van Hooff 2020-01-30 16:42:42 +01:00
parent eec7d2f0cd
commit a02b753d53
2 changed files with 28 additions and 20 deletions

View file

@ -71,6 +71,7 @@ class LicenseModel(QObject):
self._updateDialogTitle()
def _updateDialogTitle(self):
self._dialogTitle = catalog.i18nc("@title:window", "Plugin License Agreement ({}/{})"
.format(self._current_page_idx + 1, self._page_count))
self._dialogTitle = catalog.i18nc("@title:window", "Plugin License Agreement")
if self._page_count > 1:
self._dialogTitle = self._dialogTitle + " ({}/{})".format(self._current_page_idx + 1, self._page_count)
self.dialogTitleChanged.emit()