diff options
author | George Hazan <ghazan@miranda.im> | 2020-09-10 19:43:01 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-09-10 19:43:01 +0300 |
commit | 8ae4a1dc21b72aea5dac2ae1badd91238682ae45 (patch) | |
tree | 82a51fb9c4f032c6226503b26b16848bd9a4583c /plugins/PluginUpdater/src/Utils.cpp | |
parent | 22c5c5accc245edf6ec0e0c1366b60b8bd060e4f (diff) |
Plugin Updater: new option to tune the number of backups to keep (3 by default)
Diffstat (limited to 'plugins/PluginUpdater/src/Utils.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/Utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp index 72d7e5fd4a..8794b2b1e0 100644 --- a/plugins/PluginUpdater/src/Utils.cpp +++ b/plugins/PluginUpdater/src/Utils.cpp @@ -458,7 +458,7 @@ void CreateWorkFolders(TFileName &wszTempFolder, TFileName &wszBackupFolder) } while (FindNextFileW(hFind, &fdata));
// remove all folders with lesser dates if there're more than 10 folders
- while (arNames.getCount() > 9) {
+ while (arNames.getCount() >= g_plugin.iNumberBackups) {
SafeDeleteDirectory(arNames[0]);
arNames.remove(00);
}
|