Show file extensions in browser (user option)
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user