mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 00:50:31 +00:00
Small fixes
This commit is contained in:
parent
d2c56c0acd
commit
d6d5c8162f
3 changed files with 7 additions and 3 deletions
|
@ -90,7 +90,7 @@ public class BrowserStatusBarComp extends SimpleComp {
|
|||
return p.getName();
|
||||
}
|
||||
});
|
||||
var progressComp = new LabelComp(text).styleClass("progress").apply(struc -> struc.get().setAlignment(Pos.CENTER_LEFT)).prefWidth(250);
|
||||
var progressComp = new LabelComp(text).styleClass("progress").apply(struc -> struc.get().setAlignment(Pos.CENTER_LEFT)).prefWidth(180);
|
||||
return progressComp;
|
||||
}
|
||||
|
||||
|
|
|
@ -70,8 +70,7 @@ public class ScriptHelper {
|
|||
content += nl + postInit.stream().flatMap(s -> s.lines()).collect(Collectors.joining(nl)) + nl;
|
||||
|
||||
if (exit) {
|
||||
// Assign exit code 0 to prevent terminals from doing their own pause error handling for failed commands
|
||||
content += nl + t.getNormalExitCommand();
|
||||
content += nl + t.getPassthroughExitCommand();
|
||||
}
|
||||
|
||||
return createExecScript(t, processControl, new FilePath(t.initFileName(processControl)), content);
|
||||
|
|
|
@ -44,6 +44,11 @@ public class BeaconConfig {
|
|||
}
|
||||
|
||||
public static int getUsedPort() {
|
||||
var beaconPort = System.getenv("BEACON_PORT");
|
||||
if (beaconPort != null && !beaconPort.isBlank()) {
|
||||
return Integer.parseInt(beaconPort);
|
||||
}
|
||||
|
||||
if (System.getProperty(BEACON_PORT_PROP) != null) {
|
||||
return Integer.parseInt(System.getProperty(BEACON_PORT_PROP));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue