Merge branch 'feat-dirshow' of https://github.com/jpirnay/crosspoint-reader into mybuild
This commit is contained in:
@@ -256,7 +256,11 @@ void FileBrowserActivity::loop() {
|
||||
|
||||
std::string getFileName(std::string filename) {
|
||||
if (filename.back() == '/') {
|
||||
return "[" + filename.substr(0, filename.length() - 1) + "]";
|
||||
filename = filename.substr(0, filename.length() - 1);
|
||||
if (!UITheme::getInstance().getTheme().showsFileIcons()) {
|
||||
return "[" + filename + "]";
|
||||
}
|
||||
return filename;
|
||||
}
|
||||
const auto pos = filename.rfind('.');
|
||||
return filename.substr(0, pos);
|
||||
|
||||
Reference in New Issue
Block a user