From a8baad78f5325ed6310d22cb1738528d6835595c Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 6 Apr 2023 06:15:47 -0500 Subject: [PATCH] excess backup deletion --- src/gui/gui.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 5c07132fb..135f6ccf0 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -2132,6 +2132,13 @@ void FurnaceGUI::delFirstBackup(String name) { for (String& i: listOfFiles) { logV("- %s",i); } + + int totalDelete=((int)listOfFiles.size())-5; + for (int i=0; i bool { - // TODO: remember how many backups we have made so we don't flood the directory if (curFileName.find(backupPath)==0) { logD("backup file open. not saving backup."); return true;