fix user systems not loading when language is not english

This commit is contained in:
Eknous-P 2024-12-24 22:13:02 +04:00 committed by tildearrow
parent 9124a49b2f
commit d80fe7e0a7
2 changed files with 4 additions and 4 deletions

View file

@ -198,7 +198,7 @@ void FurnaceGUI::drawNewSong() {
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("%s",i.description);
}
if (strcmp(i.name,"User")==0) ImGui::Separator();
if (strcmp(i.name,_("User"))==0) ImGui::Separator();
index++;
}
}

View file

@ -130,7 +130,7 @@ bool FurnaceGUI::loadUserPresets(bool redundancy, String path, bool append) {
FurnaceGUISysCategory* userCategory=NULL;
for (FurnaceGUISysCategory& i: sysCategories) {
if (strcmp(i.name,"User")==0) {
if (strcmp(i.name,_("User"))==0) {
userCategory=&i;
break;
}
@ -226,7 +226,7 @@ bool FurnaceGUI::saveUserPresets(bool redundancy, String path) {
FurnaceGUISysCategory* userCategory=NULL;
for (FurnaceGUISysCategory& i: sysCategories) {
if (strcmp(i.name,"User")==0) {
if (strcmp(i.name,_("User"))==0) {
userCategory=&i;
break;
}
@ -336,7 +336,7 @@ void FurnaceGUI::drawUserPresets() {
if (ImGui::Begin("User Systems",&userPresetsOpen,globalWinFlags,_("User Systems"))) {
FurnaceGUISysCategory* userCategory=NULL;
for (FurnaceGUISysCategory& i: sysCategories) {
if (strcmp(i.name,"User")==0) {
if (strcmp(i.name,_("User"))==0) {
userCategory=&i;
break;
}