mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 10:30:44 +01:00
Merge pull request #2657 from joelmoniz/fixReferenceNotShowing
Help>References and Help>Environment open in default browser in Windows
This commit is contained in:
@@ -1232,6 +1232,11 @@ public abstract class Editor extends JFrame implements RunnerListener {
|
||||
|
||||
public void showReference(String filename) {
|
||||
File file = new File(mode.getReferenceFolder(), filename);
|
||||
try {
|
||||
file = file.getCanonicalFile();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
// Prepend with file:// and also encode spaces & other characters
|
||||
Base.openURL(file.toURI().toString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user