1
0
Fork 0
mirror of synced 2024-06-23 08:40:45 +12:00

Merge pull request #223 from aznd/fix_uninstall

Don't double delete the game dir
This commit is contained in:
Dummerle 2022-06-26 17:37:34 +02:00 committed by GitHub
commit 3f437a33fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,8 +54,6 @@ def uninstall(app_name: str, core: LegendaryCore, options=None):
igame, delete_files=not options["keep_files"], delete_root_directory=True
)
logger.info("Game has been uninstalled.")
if not options["keep_files"]:
shutil.rmtree(igame.install_path)
except Exception as e:
logger.warning(