Skip to content

Commit

Permalink
fix user systems not loading when language is not english
Browse files Browse the repository at this point in the history
  • Loading branch information
Eknous-P authored and tildearrow committed Dec 24, 2024
1 parent 9124a49 commit d80fe7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/gui/newSong.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/gui/userPresets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit d80fe7e

Please sign in to comment.