diff --git a/backup_manager.py b/backup_manager.py index 277e56b..9789ce1 100644 --- a/backup_manager.py +++ b/backup_manager.py @@ -91,7 +91,7 @@ class BackupManager: rm -rf '{path}' rm -f '{info_file}' """ - if self._execute_as_root(script_content): + if self.encryption_manager._execute_as_root(script_content): self.logger.log(f"Successfully deleted {path} and {info_file}") queue.put(('deletion_complete', True)) else: diff --git a/main_app.py b/main_app.py index 6f86980..5c704a3 100644 --- a/main_app.py +++ b/main_app.py @@ -303,6 +303,7 @@ class MainApplication(tk.Tk): self.protocol("WM_DELETE_WINDOW", self.on_closing) def _load_state_and_initialize(self): + self.log_window.clear_log() """Loads saved state from config and initializes the UI.""" last_mode = self.config_manager.get_setting("last_mode", "backup")