1
0
mirror of synced 2025-01-19 01:24:15 +01:00

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

@ -1 +1 @@
Subproject commit 0999ae32658d8ec5e1ec4b2f091e53bc879d9de3
Subproject commit dd4c2b2620a77397c42354ef7685241a9f510aa4

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();