Various fixes [stage]

This commit is contained in:
crschnick
2025-11-06 06:02:52 +00:00
parent 2e703322fe
commit b50900dd59
7 changed files with 14 additions and 7 deletions
@@ -89,7 +89,7 @@ public class ModalOverlayComp extends SimpleComp {
});
modal.addEventHandler(KeyEvent.KEY_PRESSED, event -> {
if (event.getCode() == KeyCode.ENTER) {
if (event.getCode() == KeyCode.ENTER || event.getCode() == KeyCode.SPACE) {
if (actionRunning.get()) {
return;
}
@@ -95,13 +95,15 @@ public abstract class StoreSectionBaseComp extends Comp<CompStructure<VBox>> {
return;
}
hbox.getChildren().addAll(children);
if (hbox.getChildren().size() == 0) {
hbox.getChildren().addAll(children);
}
} else {
if (root.isVisible()) {
return;
}
hbox.getChildren().removeAll(children);
hbox.getChildren().clear();
}
});
});
@@ -54,6 +54,11 @@ public class ExternalApplicationHelper {
try (var sc = LocalShell.getShell().start()) {
var base = b.buildBaseParts(sc);
var exec = base.getFirst();
if (exec.startsWith("\"") && exec.endsWith("\"")) {
exec = exec.substring(1, exec.length() - 1);
} else if (exec.startsWith("'") && exec.endsWith("'")) {
exec = exec.substring(1, exec.length() - 1);
}
CommandSupport.isInPathOrThrow(sc, exec);
var cmd = sc.getShellDialect().launchAsnyc(b);
@@ -29,7 +29,7 @@ public class CommandSupport {
public static void isInPathOrThrow(
ShellControl processControl, String executable, String displayName, DataStoreEntry connection)
throws Exception {
if (!processControl.view().findProgram(executable).isPresent()) {
if (processControl.view().findProgram(executable).isEmpty()) {
var prefix = displayName != null ? displayName + " executable " + executable : executable + " executable";
throw ErrorEventFactory.expected(new IOException(
prefix + " not found in PATH" + (connection != null ? " on system " + connection.getName() : "")));
@@ -15,7 +15,7 @@ public enum DocumentationLink {
PRIVACY("legal/privacy"),
EULA("legal/eula"),
WEBTOP_UPDATE("guide/webtop#updating"),
WEBTOP_TAILSCALE("guide/webtop#networking-and-tailscale"),
WEBTOP_TUN("guide/webtop##networking-tailscale-and-netbird"),
SYNC("guide/sync"),
SYNC_LOCAL("guide/sync#local-repositories"),
DESKTOP_APPLICATIONS("guide/desktop-applications"),
+1 -1
View File
@@ -265,7 +265,7 @@ project.ext {
jpackageMacOsBundleName = isStage ? groupName + '.ptb-app' : groupName + '.app'
jpackageReleaseArguments = jvmRunArgs + [
"-D" + propertyName("version") + "=" + versionString,
"-D" + propertyName("build") + "=$versionString/${new Date().format('yyyy-MM-dd-HH-mm')}\"",
"-D" + propertyName("build") + "=$versionString/${new Date().format('yyyy-MM-dd-HH-mm')}",
"-D" + propertyName("buildId") + "=" + buildId,
"-D" + propertyName("fullVersion") + "=" + fullVersion,
"-D" + propertyName("staging") + "=" + isStage,
+1 -1
View File
@@ -1 +1 @@
19.0-9
19.0-10