mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-01 21:17:44 -05:00
fix: Occasional error when loading recent files
This commit is contained in:
@@ -480,8 +480,15 @@ namespace hex::plugin::builtin {
|
||||
if (!recentFile.isValid())
|
||||
continue;
|
||||
|
||||
if (auto settings = provider->storeSettings(); !settings.is_null())
|
||||
recentFile.write(settings.dump(4));
|
||||
{
|
||||
auto path = ProjectFile::getPath();
|
||||
ProjectFile::clearPath();
|
||||
|
||||
if (auto settings = provider->storeSettings(); !settings.is_null())
|
||||
recentFile.write(settings.dump(4));
|
||||
|
||||
ProjectFile::setPath(path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user