mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-05 07:01:21 +00:00
fix user systems not loading when language is not english
This commit is contained in:
parent
9124a49b2f
commit
d80fe7e0a7
2 changed files with 4 additions and 4 deletions
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue