fix: Safety backup restore popup getting hidden by tip of the day

This commit is contained in:
WerWolv
2023-02-14 11:45:32 +01:00
parent c9348f0651
commit 2c1073eda9
2 changed files with 2 additions and 3 deletions

View File

@@ -548,7 +548,6 @@ namespace hex::plugin::builtin {
}
});
constexpr static auto CrashBackupFileName = "crash_backup.hexproj";
for (const auto &path : fs::getDefaultPaths(fs::ImHexPath::Config)) {
if (auto filePath = std::fs::path(path) / CrashBackupFileName; fs::exists(filePath)) {
@@ -558,7 +557,7 @@ namespace hex::plugin::builtin {
}
auto tipsData = romfs::get("tips.json");
if(tipsData.valid()){
if(s_safetyBackupPath.empty() && tipsData.valid()){
auto tipsCategories = nlohmann::json::parse(tipsData.string());
auto now = std::chrono::system_clock::now();