tonikelope / megabasterd

Yet another unofficial (and ugly) cross-platform MEGA downloader/uploader/streaming suite.
GNU General Public License v3.0
4.68k stars 605 forks source link

file_name_label takes up less space than available #370

Open Parranoh opened 2 years ago

Parranoh commented 2 years ago

The file_name_label in the DownloadView has a certain width (~800px on my machine) that is doesn't want to go over, even if the window is far wider. This leads to many filenames unnecessarily being shortened in the middle. For me personally, this is an issue because my default_down_dir is rather long, therefore the important part of the filename is often hidden.

Parranoh commented 2 years ago

See my fork for an alternative way of truncating filenames, which truncates every component individually. For me, the method there helps, but raising the 100 characters to 150 or 200 is even better.

Detecting window width and truncating based on that would be better, of course. But I don't know swing well enough for that.

tonikelope commented 2 years ago

I'll take a look at it when I have some time. Thanks for your help.