mirror of https://github.com/noisymime/Arduino.git
Fixing default sketchbook path (Processing -> Arduino). Not setting the Windows window icon to the Processing icon (it stays as the Java icon instead).
This commit is contained in:
parent
20ebdc9d30
commit
a0d608e946
|
@ -145,7 +145,7 @@ public class Editor extends JFrame implements RunnerListener {
|
||||||
super("Arduino");
|
super("Arduino");
|
||||||
this.base = ibase;
|
this.base = ibase;
|
||||||
|
|
||||||
Base.setIcon(this);
|
//Base.setIcon(this);
|
||||||
|
|
||||||
// add listener to handle window close box hit event
|
// add listener to handle window close box hit event
|
||||||
addWindowListener(new WindowAdapter() {
|
addWindowListener(new WindowAdapter() {
|
||||||
|
|
|
@ -92,7 +92,7 @@ public class Platform extends processing.app.Platform {
|
||||||
Class clazz = Class.forName("processing.app.BaseMacOS");
|
Class clazz = Class.forName("processing.app.BaseMacOS");
|
||||||
Method m = clazz.getMethod("getDocumentsFolder", new Class[] { });
|
Method m = clazz.getMethod("getDocumentsFolder", new Class[] { });
|
||||||
String documentsPath = (String) m.invoke(null, new Object[] { });
|
String documentsPath = (String) m.invoke(null, new Object[] { });
|
||||||
sketchbookFolder = new File(documentsPath, "Processing");
|
sketchbookFolder = new File(documentsPath, "Arduino");
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
sketchbookFolder = promptSketchbookLocation();
|
sketchbookFolder = promptSketchbookLocation();
|
||||||
|
|
|
@ -184,7 +184,7 @@ public class Platform extends processing.app.Platform {
|
||||||
String appDataPath =
|
String appDataPath =
|
||||||
Registry.getStringValue(REGISTRY_ROOT_KEY.CURRENT_USER, keyPath, "AppData");
|
Registry.getStringValue(REGISTRY_ROOT_KEY.CURRENT_USER, keyPath, "AppData");
|
||||||
|
|
||||||
File dataFolder = new File(appDataPath, "Processing");
|
File dataFolder = new File(appDataPath, "Arduino");
|
||||||
return dataFolder;
|
return dataFolder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -213,7 +213,7 @@ public class Platform extends processing.app.Platform {
|
||||||
String personalPath =
|
String personalPath =
|
||||||
Registry.getStringValue(REGISTRY_ROOT_KEY.CURRENT_USER, keyPath, "Personal");
|
Registry.getStringValue(REGISTRY_ROOT_KEY.CURRENT_USER, keyPath, "Personal");
|
||||||
|
|
||||||
return new File(personalPath, "Processing");
|
return new File(personalPath, "Arduino");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue