Skip to content
Snippets Groups Projects

Download filename trunc fix

Merged Monster Iestyn requested to merge download-filename-trunc-fix into master

Fixes SRB2MB: [Linux]Filename is truncated on download screen. Turns out the full path name (with DOWNLOAD/ or [home]/DOWNLOAD/) was being truncated, THEN what's left of the actual file name in the truncated name was used of that. That's just silly, all we need to care about is the actual file name itself.

I also improved the behaviour for extremely long filenames (even without the path) - ellipsis is now used in the middle to shorten the name, as seen below:

Example gif

(the full name was abcdefghijklmnopqrstuvwxyz1234567890.wad, just so you know :) )

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading