From 8150977ae74d5879fac6ef8f4a1856d5cabf0fdc Mon Sep 17 00:00:00 2001 From: Stepland <10530295-Buggyroom@users.noreply.gitlab.com> Date: Sun, 2 Apr 2023 23:33:07 +0200 Subject: [PATCH] convert path to utf8 string before displaying it in recent files list --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index f57a2ac..fc9db30 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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();