1
0
mirror of synced 2025-01-29 19:17:28 +01:00

fix: Typo and formatting

This commit is contained in:
WerWolv 2023-11-08 11:54:21 +01:00
parent e5ff04be29
commit 3af1840c6a

View File

@ -31,10 +31,12 @@ namespace hex::plugin::builtin::recent {
auto fileName = hex::format("{:%y%m%d_%H%M%S}.json", fmt::gmtime(std::chrono::system_clock::now()));
// Do not save to recents if the provider is part of a project
if (ProjectFile::hasPath()) return;
if (ProjectFile::hasPath())
return;
// Do not save to recents if the provider doesnt want it
if (!provider->isSavableAsRecent()) return;
// Do not save to recents if the provider doesn't want it
if (!provider->isSavableAsRecent())
return;
// The recent provider is saved to every "recent" directory
for (const auto &recentPath : fs::getDefaultPaths(fs::ImHexPath::Recent)) {