Allow user to set a specific title for gui client

This commit is contained in:
M*C*O
2018-06-14 23:07:06 +02:00
committed by Laurent Clouet
parent fb93bee40f
commit 1da730dd1d
2 changed files with 8 additions and 3 deletions

View File

@@ -102,6 +102,9 @@ public class Worker {
@Option(name = "-priority", usage = "Set render process priority (19 lowest to -19 highest)", required = false)
private int priority = 19;
@Option(name = "-title", usage = "Custom title for the GUI Client", required = false)
private String title = "SheepIt Render Farm";
public static void main(String[] args) {
new Worker().doMain(args);
@@ -304,7 +307,7 @@ public class Worker {
System.out.println("You should set a DISPLAY or use a text ui (with -ui " + GuiTextOneLine.type + " or -ui " + GuiText.type + ").");
System.exit(3);
}
gui = new GuiSwing(no_systray == false);
gui = new GuiSwing(no_systray == false, title);
break;
}
Client cli = new Client(gui, config, server);