1
0
mirror of synced 2024-11-28 01:20:51 +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())
continue;
std::string displayName = hex::format("[{}] {}", "hex.ui.common.project"_lang, wolv::util::toUTF8String(projectFileName));
nlohmann::json recentEntry {
{"type", "project"},
{"displayName", displayName},
{"path", wolv::util::toUTF8String(ProjectFile::getPath())}
{ "type", "project" },
{ "displayName", wolv::util::toUTF8String(projectFileName) },
{ "path", wolv::util::toUTF8String(ProjectFile::getPath()) }
};
recentFile.writeString(recentEntry.dump(4));