Show file extensions in browser (user option)

This commit is contained in:
jpirnay committed 2026-04-06 19:34:08 +02:00
1 parent 4200714127
commit c0797b385a
6 files changed
+34 -2

No files matched your search

@@ -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);
}