Skip to content

Commit

Permalink
Restore ability to export multiple selected projects
Browse files Browse the repository at this point in the history
  • Loading branch information
SusanRatiLane authored and jisqyv committed Sep 7, 2023
1 parent d36e923 commit a4f5204
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
import com.google.appinventor.shared.rpc.ServerLayout;
import com.google.gwt.user.client.Command;
import java.util.List;
import java.util.logging.Logger;

public class ExportProjectAction implements Command {
private static final Logger LOG = Logger.getLogger(ExportProjectAction.class.getName());
@Override
public void execute() {
if (Ode.getInstance().getCurrentView() == Ode.PROJECTS) {
Expand Down Expand Up @@ -60,7 +62,6 @@ private void exportSelectedProjects(List<Project> projects) {
selectedProjPath += project.getProjectId() + "-";
}

Downloader.getInstance().download(ServerLayout.DOWNLOAD_SERVLET_BASE +
ServerLayout.DOWNLOAD_SELECTED_PROJECTS_SOURCE + "/" + selectedProjPath);
Downloader.getInstance().download(selectedProjPath);
}
}

0 comments on commit a4f5204

Please sign in to comment.