faster split

Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
Jakub Trllo 2025-11-07 10:54:15 +01:00 committed by GitHub
parent 447c0f45e5
commit b8714b3864
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -392,7 +392,7 @@ class InstanceCardWidget(CardWidget):
) -> str:
sublabel = ""
if folder_path:
folder_name = folder_path.split("/")[-1]
folder_name = folder_path.rsplit("/", 1)[-1]
sublabel = f"- <b>{folder_name}</b>"
if task_name:
sublabel += f" - <i>{task_name}</i>"