Skip to content

Commit cb851c3

Browse files
committed
Bug fix
1 parent 1d48d3a commit cb851c3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

romsel_aktheme/arm9/source/iconTitle.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,10 +1527,16 @@ void titleUpdate(int num, bool isDir, const char* name, const bool highlighted)
15271527
// or a file with custom banner text
15281528
writeBannerText(num, cachedTitle[num], highlighted);
15291529
} else if (ms().ak_viewMode == TWLSettings::EViewList || ms().ak_viewMode == TWLSettings::EViewSmallIcon) {
1530-
writeBannerText(num, name, highlighted);
1530+
if ((ms().filenameDisplay == 0) && (ms().ak_viewMode == TWLSettings::EViewSmallIcon) && !infoFound[num]) {
1531+
std::string nameString = name;
1532+
std::string nameSubstr = nameString.substr(0, nameString.rfind('.'));
1533+
writeBannerText(num, nameSubstr, highlighted);
1534+
} else {
1535+
writeBannerText(num, name, highlighted);
1536+
}
15311537
} else {
15321538
std::vector<std::string> lines;
1533-
if ((ms().filenameDisplay == 0) && (ms().ak_viewMode >= TWLSettings::EViewInternal) && !infoFound[num]) {
1539+
if ((ms().filenameDisplay == 0) && (ms().ak_viewMode >= TWLSettings::EViewInternal || ms().ak_viewMode == TWLSettings::EViewSmallIcon) && !infoFound[num]) {
15341540
std::string nameString = name;
15351541
std::string nameSubstr = nameString.substr(0, nameString.rfind('.'));
15361542
lines.push_back(nameSubstr);

0 commit comments

Comments
 (0)