From d0e6f281d8e8430998f036434044fa6a0b168bf8 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Sun, 13 Feb 2022 11:51:27 -0500 Subject: [PATCH] when doing Save As, don't included exported applications --- app/src/processing/app/Platform.java | 3 +++ java/src/processing/mode/java/JavaMode.java | 8 ++------ todo.txt | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/src/processing/app/Platform.java b/app/src/processing/app/Platform.java index d509dbe40..d90b55e9e 100644 --- a/app/src/processing/app/Platform.java +++ b/app/src/processing/app/Platform.java @@ -220,6 +220,9 @@ public class Platform { { "linux-aarch64", "Linux (Raspberry Pi 64-bit)" } }); + /** + * List of variants that are supported by this release of the PDE. + */ static public StringDict getSupportedVariants() { return supportedVariants; } diff --git a/java/src/processing/mode/java/JavaMode.java b/java/src/processing/mode/java/JavaMode.java index 5f0d1bd00..b708467f8 100644 --- a/java/src/processing/mode/java/JavaMode.java +++ b/java/src/processing/mode/java/JavaMode.java @@ -82,12 +82,8 @@ public class JavaMode extends Mode { public String[] getIgnorable() { - return new String[] { - "applet", - "application.macosx", - "application.windows", - "application.linux" - }; + // folder names for exported applications + return Platform.getSupportedVariants().keyArray(); } diff --git a/todo.txt b/todo.txt index 9a24ae71d..8dbe73c74 100755 --- a/todo.txt +++ b/todo.txt @@ -5,6 +5,7 @@ X remove anachronistic Preferences.save() that happens after opening a sketch X change cmd-click in window title to point to sketch folder X prevent NullPointerException on first use of Export to Application X only showed up if no checkboxes were clicked +X when doing Save As, don't included exported applications change detector X text in second line of custom dialogs was showing too large @@ -27,7 +28,6 @@ X Interface problems when moving to a monitor with Windows scaling to 125% X https://github.com/processing/processing4/issues/296 -_ when doing Save As, don't included exported applications _ interface zoom now conflicting with the Java 9+ defaults _ things look terrible (tiny fonts) on Windows, adjusting has weird effects