промежуточный. в процессе рефакторинга настроек.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user