mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 20:45:43 +00:00
fix(battlenet): use reconciliation context for deletion guards
This commit is contained in:
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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user