From e7dc0bc0bd620791ca7de4d24cff721bf8cd971f Mon Sep 17 00:00:00 2001 From: phact Date: Wed, 3 Dec 2025 13:41:36 -0500 Subject: [PATCH] unnecessary notification --- src/tui/screens/monitor.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/tui/screens/monitor.py b/src/tui/screens/monitor.py index 12a16d59..7c5e0203 100644 --- a/src/tui/screens/monitor.py +++ b/src/tui/screens/monitor.py @@ -493,14 +493,15 @@ class MonitorScreen(Screen): if conversations_file.exists(): conversations_file.unlink() - # Delete flow backups only if user chose to - if delete_backups and flows_backup_path.exists(): - shutil.rmtree(flows_backup_path) - # Recreate empty backup directory - flows_backup_path.mkdir(parents=True, exist_ok=True) - self.notify("Flow backups deleted", severity="information") - elif flows_backup_path.exists(): - self.notify("Flow backups preserved in ./flows/backup", severity="information") + # Delete flow backups only if user chose to (and they actually exist) + if self._check_flow_backups(): + if delete_backups: + shutil.rmtree(flows_backup_path) + # Recreate empty backup directory + flows_backup_path.mkdir(parents=True, exist_ok=True) + self.notify("Flow backups deleted", severity="information") + else: + self.notify("Flow backups preserved in ./flows/backup", severity="information") except Exception as e: self.notify(