diff --git a/src/recent_files.cpp b/src/recent_files.cpp index 4c4a6bd580..164d75252c 100644 --- a/src/recent_files.cpp +++ b/src/recent_files.cpp @@ -204,6 +204,11 @@ wxString pretty_print_path(wxFileName f) // shorten the path for visual use: auto path = f.GetPath(); + auto cloud = wxFileName::DirName(PoeditApp::GetCacheDir("Cloud")); + cloud.ReplaceHomeDir(); + if (path.StartsWith(cloud.GetFullPath())) + path = _("Cloud") + L" → " + path.substr(cloud.GetFullPath().length()); + #ifdef __WXMSW__ // ReplaceHomeDir() puts tilde at the beginning to replace $HOME, but this is uncommon on Windows, // so remove it and just use plain path: