From a5593da6153d8468a7f88599667a4ef8878125df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Thu, 12 Nov 2020 08:31:44 +0100 Subject: [PATCH] Added backup trigger to interactive mode (close #221) --- CurseBreaker.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CurseBreaker.py b/CurseBreaker.py index 58c5201..926022c 100644 --- a/CurseBreaker.py +++ b/CurseBreaker.py @@ -174,6 +174,10 @@ def start(self): if len(self.core.config['Addons']) == 0: self.console.print('Command [green]import[/green] might be used to detect already installed addons.\n') self.motd_parser() + if self.core.backup_check(): + self.console.print(f'[green]Backing up WTF directory:[/green]') + self.core.backup_wtf(self.console) + self.console.print('') # Prompt session while True: try: