mirror of
https://github.com/processing/processing4.git
synced 2026-05-03 17:35:00 +02:00
rolling revision, plus reload library paths when changing bits
This commit is contained in:
@@ -50,9 +50,9 @@ import processing.core.*;
|
||||
* files and images, etc) that comes from that.
|
||||
*/
|
||||
public class Base {
|
||||
static public final int REVISION = 202;
|
||||
static public final int REVISION = 203;
|
||||
/** This might be replaced by main() if there's a lib/version.txt file. */
|
||||
static public String VERSION_NAME = "0202";
|
||||
static public String VERSION_NAME = "0203";
|
||||
/** Set true if this a proper release rather than a numbered revision. */
|
||||
static public boolean RELEASE = false;
|
||||
/** True if heavy debugging error/log messages are enabled */
|
||||
|
||||
@@ -570,8 +570,17 @@ public class Preferences {
|
||||
}
|
||||
*/
|
||||
|
||||
// If a change has been made between 32- and 64-bit, the libraries need
|
||||
// to be reloaded so that their native paths are set correctly.
|
||||
if (Base.isMacOS()) {
|
||||
set("run.options.bits", bitsThirtyTwoButton.isSelected() ? "32" : "64");
|
||||
String oldBits = get("run.options.bits");
|
||||
String newBits = bitsThirtyTwoButton.isSelected() ? "32" : "64";
|
||||
if (!oldBits.equals(newBits)) {
|
||||
set("run.options.bits", newBits);
|
||||
for (Mode m : editor.base.getModeList()) {
|
||||
m.rebuildLibraryList();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
String newSizeText = fontSizeField.getText();
|
||||
|
||||
Reference in New Issue
Block a user