промежуточный. в процессе рефакторинга настроек.

This commit is contained in:
2025-01-10 23:57:49 +03:00
parent 0b7b793571
commit f3f6c52f81
9 changed files with 57 additions and 43 deletions

View File

@@ -22,7 +22,7 @@ public class DeleteDownloadedBugReports extends Pass<DirInfosDataSet> {
target = (DirInfosDataSet) Global.mainModule.getPass(PassCode.GetOldBugReports).target;
if (target.Data.isEmpty()) {
Log.Writeln_("Не найдено отчетов, не использовавшихся " +
(Global.mainModule.getDb()).settings.get(SettingName.BugReportsAgeLimit).toInt32() +
Global.properties.BugReportsAgeLimit +
" месяцев и более!");
return false;
}
@@ -46,7 +46,7 @@ public class DeleteDownloadedBugReports extends Pass<DirInfosDataSet> {
}
};
if (dialog.ShowDialog("Найдено " + target.size() + " отчетов, не использовавшихся " +
(Global.mainModule.getDb()).settings.get(SettingName.BugReportsAgeLimit).toInt32() +
Global.properties.BugReportsAgeLimit +
" месяцев и более. Удалить?")) {
return true;
}

View File

@@ -29,7 +29,7 @@ public class GetOldBugReports extends Pass<DirInfosDataSet> {
//---
Calendar c = new GregorianCalendar();
c.setTimeInMillis(System.currentTimeMillis());
c.add(Calendar.MONTH, -(Global.mainModule.getDb()).settings.get(SettingName.BugReportsAgeLimit).toInt32());
c.add(Calendar.MONTH, -Global.properties.BugReportsAgeLimit);
Date date = c.getTime();
System.out.println(date);
long border = date.getTime();

View File

@@ -73,13 +73,6 @@ public class UpdateSetting extends Pass<DBSetting> {
if (f_.ShowDialog(target.Name.getDescription()))
NewValue = String.valueOf(f_.Result);
break;
case BugReportsAgeLimit:
min = 1;
max = 12;
SliderNumberForm fffff = new SliderNumberForm();
if (fffff.ShowDialog(target.Name.getDescription(), target.toInt32(), min, max))
NewValue = String.valueOf(fffff.Result);
break;
case FastAccessPassesCount:
min = 5;
max = 15;