Skip to content

Commit

Permalink
Reflect BMG changes on NitroEdit
Browse files Browse the repository at this point in the history
  • Loading branch information
XorTroll committed Apr 23, 2023
1 parent 83bdb67 commit b4c57f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NitroEdit/source/ui/menu/menu_BMGEditMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ namespace ui::menu {
.newline_allowed = true,
.max_len = 0
};
auto edit_str = ntr::util::ConvertFromUnicode(g_BMG.strings[idx]);
auto edit_str = ntr::util::ConvertFromUnicode(g_BMG.strings[idx].str);
if(ShowKeyboard(ctx, edit_str)) {
g_BMG.strings[idx] = ntr::util::ConvertToUnicode(edit_str);
g_BMG.strings[idx].str = ntr::util::ConvertToUnicode(edit_str);
ReloadBMGEditMenu();
}
}
Expand All @@ -50,7 +50,7 @@ namespace ui::menu {
std::vector<ScrollMenuEntry> entries;
auto text_icon_gfx = GetTextIcon();
for(u32 i = 0; i < g_BMG.strings.size(); i++) {
const auto str = ntr::util::ConvertFromUnicode(g_BMG.strings[i]);
const auto str = ntr::util::ConvertFromUnicode(g_BMG.strings[i].str);
entries.push_back({
.icon_gfx = text_icon_gfx,
.text = "String " + std::to_string(i),
Expand Down

0 comments on commit b4c57f1

Please sign in to comment.