Show file extensions in browser (user option)

This commit is contained in:
jpirnay
2026-04-06 19:34:08 +02:00
parent 4200714127
commit c0797b385a
6 changed files with 34 additions and 2 deletions
@@ -263,6 +263,9 @@ std::string getFileName(std::string filename) {
}
return filename;
}
if (SETTINGS.showFileExtensions) {
return filename;
}
const auto pos = filename.rfind('.');
return filename.substr(0, pos);
}