mirror of https://github.com/WerWolv/ImHex.git
fix: Null and MemFile providers dumping `null` into recent files
This commit is contained in:
parent
b5f7be2384
commit
04a4957ccf
|
@ -504,7 +504,8 @@ namespace hex::plugin::builtin {
|
|||
auto fileName = hex::format("{:%y%m%d_%H%M%S}.json", fmt::gmtime(std::chrono::system_clock::now()));
|
||||
fs::File recentFile(recentPath / fileName, fs::File::Mode::Create);
|
||||
|
||||
recentFile.write(provider->storeSettings().dump(4));
|
||||
if (auto settings = provider->storeSettings(); !settings.is_null())
|
||||
recentFile.write(settings.dump(4));
|
||||
}
|
||||
|
||||
updateRecentProviders();
|
||||
|
|
Loading…
Reference in New Issue