mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-01 00:27:20 -05:00
fix: name the folder whose files could not be read
This commit is contained in:
1 parent
c3978ec467
commit
536081ffb1
2 files changed
+6
-2
No files matched your search
+4
-1
@@ -11974,7 +11974,10 @@ def _scan_lines(state: TuiState) -> list[str]:
|
||||
for drive in scan["other_drives"]]
|
||||
if state.unreadable:
|
||||
count = len(state.unreadable)
|
||||
lines.append(f"{_plural(count, 'file')} on your old card could not be read.")
|
||||
# Named as it was given: "your old card" was said of a folder.
|
||||
where = ", ".join(_last_name(folder) for folder in
|
||||
dict.fromkeys(event["folder"] for event in state.unreadable))
|
||||
lines.append(f"{_plural(count, 'file')} in {where} could not be read.")
|
||||
return lines
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user