From 7b844d12cbd1720a167fdd2436875731a72df953 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 5 Oct 2017 14:39:47 +1000 Subject: [PATCH] increase default number of backups; don't put in trash --- aqt/main.py | 2 +- aqt/profiles.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aqt/main.py b/aqt/main.py index 50a574845..eccbff87c 100644 --- a/aqt/main.py +++ b/aqt/main.py @@ -420,7 +420,7 @@ from the profile screen.")) while len(backups) > nbacks: fname = backups.pop(0) path = os.path.join(dir, fname) - send2trash(path) + os.unlink(path) def maybeOptimize(self): # have two weeks passed? diff --git a/aqt/profiles.py b/aqt/profiles.py index 3597641d9..53cfd2628 100644 --- a/aqt/profiles.py +++ b/aqt/profiles.py @@ -39,7 +39,7 @@ profileConf = dict( # profile mainWindowGeom=None, mainWindowState=None, - numBackups=30, + numBackups=50, lastOptimize=intTime(), # editing fullSearch=False,