no message

This commit is contained in:
2024-10-08 15:32:39 +03:00
parent 18ceb04325
commit e7939713e7
24 changed files with 82 additions and 155 deletions

View File

@@ -146,7 +146,7 @@ public class Global {
}
@Override
public String getLogName() {
return Current.mode.toString();
return CommonUtils.mode.toString();
}
};
CommonUtils.MainLog.ClearLog();
@@ -216,7 +216,7 @@ public class Global {
}
//возможно заменить settings на properties
public static DBSetting getSetting(SettingName settingName) throws Exception {
switch (Current.mode) {
switch (CommonUtils.mode) {
case Normal:
return ((GlobalDatabase)CommonUtils.db).settings.get(settingName);
default:
@@ -386,10 +386,10 @@ public class Global {
System.out.println("home directory is" + CommonUtils.Brackets(CommonUtils.Home));
//---
SynschronizeProperties();
Current.mode = properties.Mode;
System.out.println("mode is " + Current.mode);
CommonUtils.mode = properties.Mode;
System.out.println("mode is " + CommonUtils.mode);
try {
switch (Current.mode) {
switch (CommonUtils.mode) {
case Normal:
NormalMode(Integer.parseInt(args[1]));
break;