Show file extensions in browser (user option)
This commit is contained in:
@@ -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