Skip to content

Commit 6469e8f

Browse files
authored
Update main_window.py
1 parent b5e5f64 commit 6469e8f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main_window.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,9 +1642,10 @@ def on_close(self, widget, *args):
16421642
print("Flatpak data exists.")
16431643
elif os.path.exists(f"{CACHE}/syncing/copying_flatpak_data"):
16441644
print("Flatpak data exists.")
1645+
elif os.path.exists(f"{CACHE}/periodic_saving/saving_status"):
1646+
print("Saving Flatpak apps data in the periodic saving mode in progress")
16451647
else:
1646-
os.popen(f"rm -rf {CACHE}/periodic_saving")
1647-
os.popen(f"rm -rf {CACHE}/syncing")
1648+
os.popen(f"rm -rf {CACHE}/*")
16481649
os.popen(f"rm -rf {CACHE}/.*")
16491650
try:
16501651
url = urlopen(f"{settings['url-for-syncing']}/file-settings.json")
@@ -1714,6 +1715,8 @@ def app_quit(self, action, param):
17141715
print("Flatpak data exists.")
17151716
elif os.path.exists(f"{CACHE}/syncing/copying_flatpak_data"):
17161717
print("Flatpak data exists.")
1718+
elif os.path.exists(f"{CACHE}/periodic_saving/saving_status"):
1719+
print("Saving Flatpak apps data in the periodic saving mode in progress")
17171720
else:
17181721
os.popen(f"rm -rf {CACHE}/*")
17191722
os.popen(f"rm -rf {CACHE}/.*")

0 commit comments

Comments
 (0)