fix(battlenet): use reconciliation context for deletion guards

This commit is contained in:
xXJsonDeruloXx committed 2026-11-30 16:38:58 -05:00
1 parent c10369ed99
commit 7a8efce905
1 file changed
+2 -2
@@ -223,7 +223,7 @@ object BattleNetInstall {
continue
}
if (found.isEmpty()) {
if (pending.createdFolder && pending.folder.exists() && (BattleNet.folderHasRegistrations(app, pending.folder) != false || !deleteFolder(pending.folder))) {
if (pending.createdFolder && pending.folder.exists() && (BattleNet.folderHasRegistrations(context, pending.folder) != false || !deleteFolder(pending.folder))) {
retry(context, pending, "the folder could not be deleted")
continue
}
@@ -241,7 +241,7 @@ object BattleNetInstall {
retry(context, pending, "the registration in ${pending.folder.path} is still there")
continue
}
if (pending.createdFolder && pending.folder.exists() && (BattleNet.folderHasRegistrations(app, pending.folder) != false || !deleteFolder(pending.folder))) {
if (pending.createdFolder && pending.folder.exists() && (BattleNet.folderHasRegistrations(context, pending.folder) != false || !deleteFolder(pending.folder))) {
retry(context, pending, "the folder could not be deleted")
continue
}