kopia lustrzana https://github.com/jameshball/osci-render
rodzic
fac6382c77
commit
71d93f152e
|
@ -1,3 +1,7 @@
|
|||
- 1.25.2
|
||||
- Bug fix: Fix FileSystemNotFoundException on start-up due to faulty loading of code editor file
|
||||
|
||||
|
||||
- 1.25.1
|
||||
- Add drop-down under Audio settings for recording with different audio samples
|
||||
- Supports `UINT8`, `INT8`, `INT16`, `INT24`, and `INT32`
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -6,7 +6,7 @@
|
|||
|
||||
<groupId>sh.ball</groupId>
|
||||
<artifactId>osci-render</artifactId>
|
||||
<version>1.25.1</version>
|
||||
<version>1.25.2</version>
|
||||
|
||||
<name>osci-render</name>
|
||||
|
||||
|
|
|
@ -11,8 +11,6 @@ import netscape.javascript.JSObject;
|
|||
import java.io.IOException;
|
||||
import java.net.URISyntaxException;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.function.BiConsumer;
|
||||
|
||||
public class CodeEditor extends StackPane {
|
||||
|
@ -24,8 +22,8 @@ public class CodeEditor extends StackPane {
|
|||
private BiConsumer<byte[], String> callback;
|
||||
private boolean newFile = true;
|
||||
|
||||
private String applyEditingTemplate() throws URISyntaxException, IOException {
|
||||
String template = Files.readString(Path.of(getClass().getResource("/html/code_editor.html").toURI()));
|
||||
private String applyEditingTemplate() throws IOException {
|
||||
String template = new String(getClass().getResourceAsStream("/html/code_editor.html").readAllBytes(), StandardCharsets.UTF_8);
|
||||
return template.replace("${code}", editingCode);
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<menus>
|
||||
<Menu mnemonicParsing="false" text="File">
|
||||
<items>
|
||||
<MenuItem disable="true" mnemonicParsing="false" text="osci-render v1.25.1" />
|
||||
<MenuItem disable="true" mnemonicParsing="false" text="osci-render v1.25.2" />
|
||||
<MenuItem fx:id="openProjectMenuItem" mnemonicParsing="false" text="Open Project">
|
||||
<accelerator>
|
||||
<KeyCodeCombination alt="UP" code="O" control="UP" meta="UP" shift="UP" shortcut="DOWN" />
|
||||
|
|
Ładowanie…
Reference in New Issue