convert path to utf8 string before displaying it in recent files list

This commit is contained in:
Stepland 2023-04-02 23:33:07 +02:00
parent aa77bad015
commit 8150977ae7

View File

@ -548,7 +548,7 @@ int main() {
int i = 0;
for (const auto& file : Toolbox::getRecentFiles(settings_folder)) {
ImGui::PushID(i);
if (ImGui::MenuItem(file.c_str())) {
if (ImGui::MenuItem(path_to_utf8_encoded_string(file).c_str())) {
feis::save_open(editor_state, file, assets_folder, settings_folder, config);
}
ImGui::PopID();