Skip to content
Snippets Groups Projects
Commit 17d87512 authored by Thomas Oster's avatar Thomas Oster
Browse files

Fix: Don't name the job (1/1) if only 1 job

parent b9d6a4a4
No related branches found
No related tags found
No related merge requests found
......@@ -361,7 +361,8 @@ abstract class EpilogCutter extends LaserCutter
for(List<JobPart> current : jobs)
{
number++;
LaserJob j = new LaserJob("("+number+"/"+size+")"+job.getTitle(), job.getName(), job.getUser(), job.getResolution());
String name = (size > 1 ? "("+number+"/"+size+")" : "") + job.getTitle();
LaserJob j = new LaserJob(name, job.getName(), job.getUser(), job.getResolution());
for (JobPart p:current)
{
j.addPart(p);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment