Save recent projects by their ID instead of path (#2217)

This commit is contained in:
Veronica Berglyd Olsen
2025-01-30 23:11:10 +01:00
parent f10328803c
commit f686ec6a5a
3 changed files with 36 additions and 27 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ def checkBool(value: Any, default: bool) -> bool:
return default
def checkUuid(value: Any, default: str) -> str:
def checkUuid(value: Any, default: str = "") -> str:
"""Try to process a value as an UUID, or return a default."""
try:
return str(uuid.UUID(value))