Skip to content

Commit db5afdb

Browse files
committed
Fix condition in window.py
1 parent 06cbe97 commit db5afdb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/gui/window.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,5 @@ def on_close(self, w):
752752
# Remove this folder to cleanup unnecessary content created during saving,
753753
# importing, or syncing the configuration only if these files are not present
754754
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"])
755+
if not any(os.path.exists(path) for path in files_to_check):
756+
subprocess.Popen(["rm", "-rf", f"{CACHE}/workspace"])

0 commit comments

Comments
 (0)