mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-18 09:24:42 -04:00
Circuit rebuild wires when it is saved
This commit is contained in:
parent
582376696d
commit
45a6ea8e51
@ -68,6 +68,7 @@ public class Circuit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void save(File filename) throws IOException {
|
public void save(File filename) throws IOException {
|
||||||
|
wires = new WireConsistencyChecker(wires).check();
|
||||||
XStream xStream = Circuit.getxStream();
|
XStream xStream = Circuit.getxStream();
|
||||||
try (Writer out = new OutputStreamWriter(new FileOutputStream(filename), "utf-8")) {
|
try (Writer out = new OutputStreamWriter(new FileOutputStream(filename), "utf-8")) {
|
||||||
out.write("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
|
out.write("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user