We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06cbe97 commit db5afdbCopy full SHA for db5afdb
src/gui/window.py
@@ -752,6 +752,5 @@ def on_close(self, w):
752
# Remove this folder to cleanup unnecessary content created during saving,
753
# importing, or syncing the configuration only if these files are not present
754
files_to_check = [f"{CACHE}/pb", f"{CACHE}/sync", f"{CACHE}/workspace/flatpaks_installer.py"]
755
- for path in files_to_check:
756
- if not os.path.exists(path):
757
- subprocess.Popen(["rm", "-rf", f"{CACHE}/workspace"])
+ if not any(os.path.exists(path) for path in files_to_check):
+ subprocess.Popen(["rm", "-rf", f"{CACHE}/workspace"])
0 commit comments