benfry / processing4

Processing 4.x releases for Java 17
https://processing.org
Other
1.35k stars 239 forks source link

PDE defaults to Android mode on restart despite last mode being Java #652

Open SableRaf opened 1 year ago

SableRaf commented 1 year ago

Description

When opening Processing, the PDE defaults to Android mode even though the last mode used was Java.

Expected Behavior

The PDE should default to the last mode used, which in this case is Java mode.

Current Behavior

When Processing is closed and started again, the PDE defaults to Android mode even though the last mode used was Java.

Steps to Reproduce

Not entirely sure how to reproduce the issue but this would be a reasonable approximation of how I got into this situation:

  1. Install Android mode
  2. Close and restart Processing
  3. Switch to Android mode
  4. Close and restart Processing
  5. Switch to Java mode
  6. Close and restart Processing
  7. Observe that Processing opens in Android mode

Your Environment

Possible Causes / Solutions

This may be related to this other issue when updating the Android mode.

benfry commented 1 year ago

Hm, can't reproduce this on either Windows or macOS.

SableRaf commented 1 year ago

Thanks for looking into it! Shall we table this until we have a solution for https://github.com/processing/processing4/issues/647 then?

benfry commented 1 year ago

Sure; hopefully just a weird artifact. Or maybe fixed in the source with all the other changes in the pipeline.