INI option to hide RBF datecode.

This commit is contained in:
sorgelig
2018-12-23 22:37:04 +08:00
parent 53ca769890
commit b6e1b127ca
5 changed files with 12 additions and 0 deletions

View File

@@ -3495,6 +3495,9 @@ void PrintDirectory(void)
}
}
//not full check but should be enough.
if (cfg.rbf_hide_datecode && len > 9 && !strncmp(flist_DirItem(k)->d_name + len - 9, "_20", 3)) len -= 9;
if (len > 28)
{
len = 27; // trim display length if longer than 30 characters