fix: Safety backup restore popup getting hidden by tip of the day
This commit is contained in:
parent
c9348f0651
commit
2c1073eda9
2
lib/external/pattern_language
vendored
2
lib/external/pattern_language
vendored
@ -1 +1 @@
|
||||
Subproject commit 0999ae32658d8ec5e1ec4b2f091e53bc879d9de3
|
||||
Subproject commit dd4c2b2620a77397c42354ef7685241a9f510aa4
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user