Skip to content

Commit 2ee27a8

Browse files
committed
Improve debugging experience
1 parent b7a4003 commit 2ee27a8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.idea/runConfigurations/Processing.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/processing/app/Base.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public class Base {
6666
* if an empty file named 'debug' is found in the settings folder.
6767
* See implementation in createAndShowGUI().
6868
*/
69-
static public boolean DEBUG;
69+
static public boolean DEBUG = System.getenv().containsKey("DEBUG");
7070

7171
/** True if running via Commander. */
7272
static private boolean commandLine;
@@ -157,7 +157,7 @@ static public void main(final String[] args) {
157157
}
158158
Messages.showTrace("Unknown Problem",
159159
"A serious error happened during startup. Please report:\n" +
160-
"http://github.com/processing/processing/issues/new", t, true);
160+
"http://github.com/processing/processing4/issues/new", t, true);
161161
}
162162
});
163163
}
@@ -237,7 +237,7 @@ static private void createAndShowGUI(String[] args) {
237237

238238
// long t2 = System.currentTimeMillis();
239239

240-
if (!SingleInstance.alreadyRunning(args)) {
240+
if (DEBUG || !SingleInstance.alreadyRunning(args)) {
241241
// Set the look and feel before opening the window
242242
try {
243243
Platform.setLookAndFeel();

app/src/processing/app/ui/Start.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class Start {
4242
undecorated = true,
4343
transparent = true,
4444
resizable = false,
45-
alwaysOnTop = true,
4645
state = rememberWindowState(
4746
position = WindowPosition(Alignment.Center),
4847
size = DpSize(image.width.dp / 2 , image.height.dp / 2)

0 commit comments

Comments
 (0)