1
0
mirror of synced 2024-12-01 02:37:18 +01:00

impr: Removed [Project] prefix from recent project entries

This commit is contained in:
WerWolv 2024-05-19 10:21:30 +02:00
parent ec748f4a64
commit 1e48277566

View File

@ -134,12 +134,10 @@ namespace hex::plugin::builtin::recent {
if (!recentFile.isValid()) if (!recentFile.isValid())
continue; continue;
std::string displayName = hex::format("[{}] {}", "hex.ui.common.project"_lang, wolv::util::toUTF8String(projectFileName));
nlohmann::json recentEntry { nlohmann::json recentEntry {
{"type", "project"}, { "type", "project" },
{"displayName", displayName}, { "displayName", wolv::util::toUTF8String(projectFileName) },
{"path", wolv::util::toUTF8String(ProjectFile::getPath())} { "path", wolv::util::toUTF8String(ProjectFile::getPath()) }
}; };
recentFile.writeString(recentEntry.dump(4)); recentFile.writeString(recentEntry.dump(4));