Skip to content

Commit

Permalink
Fix reset everything lurching problem
Browse files Browse the repository at this point in the history
  • Loading branch information
seriouscatsoserious committed Jun 11, 2024
1 parent 61ac4bf commit 8e9d72d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions autoloads/appstate.gd
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,10 @@ func purge(base_dir: String) -> void:


func purge_all(base_dir: String):

delete_zcash_directory()
delete_ethereum_directory()

#
#delete_zcash_directory()
#delete_ethereum_directory()
#
var dir = DirAccess.open(base_dir)
if dir:
dir.list_dir_begin()
Expand Down Expand Up @@ -475,9 +475,14 @@ func reset_everything(preserve_wallets: bool = true):
if preserve_wallets:
backup_wallets()
print("Backing up wallets and starting reset process...")
delete_zcash_directory()
delete_ethereum_directory()
purge_except_backup(user_data_dir, "wallets_backup")
else:
print("Purging everything, including wallets...")

delete_zcash_directory()
delete_ethereum_directory()
purge_all(user_data_dir) # This will delete everything, including the wallets backup
# After a full purge, there is nothing left to do, so return from the function.
print("Full purge completed successfully.")
Expand Down

0 comments on commit 8e9d72d

Please sign in to comment.