1
0
mirror of synced 2025-01-18 00:56:49 +01:00

fix: Kaboom achievement not triggering

This commit is contained in:
WerWolv 2023-11-08 21:40:27 +01:00
parent 384c2a7701
commit 66cac8350e
2 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,8 @@
"fallback": true,
"translations": {
"hex.builtin.achievement.starting_out": "Starting out",
"hex.builtin.achievement.starting_out.crash.name": "Yes Rico, Kaboom!",
"hex.builtin.achievement.starting_out.crash.desc": "Crash ImHex for the first time.",
"hex.builtin.achievement.starting_out.docs.name": "RTFM",
"hex.builtin.achievement.starting_out.docs.desc": "Open the documentation by selecting Help -> Documentation from the menu bar.",
"hex.builtin.achievement.starting_out.open_file.name": "The inner workings",

View File

@ -542,7 +542,9 @@ namespace hex::plugin::builtin {
}
if (hasCrashed) {
AchievementManager::unlockAchievement("hex.builtin.achievement.starting_out", "hex.builtin.achievement.starting_out.crash.name");
TaskManager::doLater([]{
AchievementManager::unlockAchievement("hex.builtin.achievement.starting_out", "hex.builtin.achievement.starting_out.crash.name");
});
}
}