mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
@ -213,7 +213,6 @@ public class Preferences {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// set some runtime constants (not saved on preferences file)
|
// set some runtime constants (not saved on preferences file)
|
||||||
table.put("runtime.os", PConstants.platformNames[PApplet.platform]);
|
|
||||||
File hardwareFolder = Base.getHardwareFolder();
|
File hardwareFolder = Base.getHardwareFolder();
|
||||||
table.put("runtime.hardware.path", hardwareFolder.getAbsolutePath());
|
table.put("runtime.hardware.path", hardwareFolder.getAbsolutePath());
|
||||||
table.put("runtime.ide.path", hardwareFolder.getParentFile().getAbsolutePath());
|
table.put("runtime.ide.path", hardwareFolder.getParentFile().getAbsolutePath());
|
||||||
@ -277,6 +276,9 @@ public class Preferences {
|
|||||||
// load the I18n module for internationalization
|
// load the I18n module for internationalization
|
||||||
I18n.init(Preferences.get("editor.languages.current"));
|
I18n.init(Preferences.get("editor.languages.current"));
|
||||||
|
|
||||||
|
// set some other runtime constants (not saved on preferences file)
|
||||||
|
table.put("runtime.os", PConstants.platformNames[PApplet.platform]);
|
||||||
|
|
||||||
// other things that have to be set explicitly for the defaults
|
// other things that have to be set explicitly for the defaults
|
||||||
setColor("run.window.bgcolor", SystemColor.control);
|
setColor("run.window.bgcolor", SystemColor.control);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user