fix. был баг в пути запаковки пакета при скачивании

This commit is contained in:
2023-10-26 20:46:03 +03:00
parent b309745e35
commit cd439030e8
7 changed files with 24 additions and 8 deletions

View File

@@ -2,6 +2,7 @@ package Visual_DVM_2021.Passes.All;
import Common.Current;
import Common.UI.UI;
import SapforTestingSystem.SapforTasksPackage.SapforTasksPackage;
import TestingSystem.TasksPackage.TasksPackageState;
import Visual_DVM_2021.Passes.Pass_2021;
public class ShowSapforTaskPackage extends Pass_2021<SapforTasksPackage> {
@Override
@@ -14,9 +15,12 @@ public class ShowSapforTaskPackage extends Pass_2021<SapforTasksPackage> {
}
@Override
protected boolean canStart(Object... args) throws Exception {
if (Current.Check(Log, Current.SapforTasksPackage)){
if (Current.Check(Log, Current.SapforTasksPackage)) {
target = Current.getSapforTasksPackage();
return true;
if (!target.state.equals(TasksPackageState.Done)) {
Log.Writeln_("Пакет не завершен!");
} else
return true;
}
return false;
}