удаление отладочной печати сравнения и не только

This commit is contained in:
2024-07-22 00:57:05 +03:00
parent 3374c9783b
commit 53ad5e637f
76 changed files with 78 additions and 328 deletions

View File

@@ -23,16 +23,13 @@ public class InstallComponentFromFolder extends CurrentComponentPass {
if (super.canStart(args)){
VFileChooser fileChooser = target.getFileChooser();
String propertyName = target.getComponentType()+"Path";
System.out.println(propertyName);
String lastDirectory = (String) GlobalProperties.class.getField(propertyName).get(Global.properties);
System.out.println("last directory = "+ Utils.Brackets(lastDirectory));
if (!lastDirectory.isEmpty()){
//настройка выставлена не впервые, устанавливаем ее как папку
fileChooser.SetCurrentDirectory(lastDirectory);
}
boolean res = (file = fileChooser.ShowDialog()) != null;
File newDirectory = fileChooser.getCurrentDirectory();
System.out.println("new directory = "+newDirectory.getAbsolutePath());
GlobalProperties.class.getField(propertyName).set(Global.properties, newDirectory.getAbsolutePath());
Global.properties.Update();
return res;