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;