Dont add brackets around directory for themes that have icon support
This commit is contained in:
1 parent
7183b75a3c
commit
5b1ccb8b6d
3 files changed
+7
-1
No files matched your search
@@ -238,7 +238,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