Restricted external processors to unlocked sentences
This commit is contained in:
@@ -1 +1 @@
|
|||||||
version=0.1.3
|
version=0.1.4
|
||||||
|
|||||||
@@ -1145,7 +1145,9 @@ public class AudiobookRecorder extends JFrame {
|
|||||||
Chapter c = (Chapter)o.getObject();
|
Chapter c = (Chapter)o.getObject();
|
||||||
for (Enumeration s = c.children(); s.hasMoreElements();) {
|
for (Enumeration s = c.children(); s.hasMoreElements();) {
|
||||||
Sentence snt = (Sentence)s.nextElement();
|
Sentence snt = (Sentence)s.nextElement();
|
||||||
snt.runExternalProcessor(Utils.s2i(o.getActionCommand()));
|
if (!snt.isLocked()) {
|
||||||
|
snt.runExternalProcessor(Utils.s2i(o.getActionCommand()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1178,6 +1178,7 @@ public class Sentence extends DefaultMutableTreeNode implements Cacheable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void runExternalProcessor(int num) {
|
public void runExternalProcessor(int num) {
|
||||||
|
if (isLocked()) return;
|
||||||
ExternalProcessor ed = new ExternalProcessor(this, num);
|
ExternalProcessor ed = new ExternalProcessor(this, num);
|
||||||
Thread t = new Thread(ed);
|
Thread t = new Thread(ed);
|
||||||
t.start();
|
t.start();
|
||||||
|
|||||||
Reference in New Issue
Block a user