Skip to content

Commit

Permalink
UX - Add link to the folder if no thumbnail detected
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Oct 17, 2023
1 parent 088a4da commit ce116e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lizmap/dialogs/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,8 @@ def check_project_thumbnail(self):
self.label_project_thumbnail.setToolTip(tooltip)
self.label_project_thumbnail.setOpenExternalLinks(True)

text = tr("No thumbnail detected.") + " "
folder = Path(self.project.fileName()).parent
text = "<a href=\"file://{}\">".format(folder) + tr("No thumbnail detected.") + "</a>" + " "
text += tr(
"You can add one by reading the <a href='{}'>online documentation</a>."
).format(online_lwc_help("publish/configuration/project_thumbnail.html").toString())
Expand Down

0 comments on commit ce116e6

Please sign in to comment.