This commit is contained in:
2025-01-29 15:20:24 +03:00
parent f7de2590b9
commit ef5089443a
20 changed files with 60 additions and 60 deletions

View File

@@ -7,11 +7,9 @@ import _VisualDVM.Global;
import _VisualDVM.GlobalData.RemoteFile.RemoteFile;
import _VisualDVM.Passes.PassCode;
import _VisualDVM.Passes.SSH.CurrentConnectionPass;
import _VisualDVM.Repository.Component.ComponentsSet;
import _VisualDVM.Utils;
import java.io.File;
import java.nio.file.Paths;
public class DownloadProject extends CurrentConnectionPass {
private static final int maxSize = 10240;
boolean dialogOK = false;
@@ -51,7 +49,7 @@ public class DownloadProject extends CurrentConnectionPass {
}
@Override
protected void performDone() throws Exception {
File project = new File(Global.DownloadsDirectory, Utils_.getDateName(src.name));
File project = new File(Global.visualiser.getDownloadsDirectory(), Utils_.getDateName(src.name));
if (Global.mainModule.getPass(PassCode.UnzipFolderPass).Do(local_archive.getAbsolutePath(), project.getAbsolutePath())) {
if (UI.Question("Проект " + Utils_.Brackets(src.name) + " успешно загружен. Открыть его"))
Global.mainModule.getPass(PassCode.OpenCurrentProject).Do(project);