mirror of
https://github.com/badvision/jace.git
synced 2024-11-24 15:30:51 +00:00
Issue #28: Fixed detection of configurable variables that are string types.
This commit is contained in:
parent
4c308f997e
commit
deee9a2a72
@ -284,7 +284,7 @@ public class Configuration implements Reconfigurable {
|
||||
// System.out.println("Evaluating field " + f.getName());
|
||||
try {
|
||||
Object o = f.get(node.subject);
|
||||
if (!f.getType().isPrimitive() && visited.contains(o)) {
|
||||
if (!f.getType().isPrimitive() && f.getType() != String.class && visited.contains(o)) {
|
||||
continue;
|
||||
}
|
||||
visited.add(o);
|
||||
|
@ -56,7 +56,7 @@ public class CardDiskII extends Card implements Reconfigurable, MediaConsumerPar
|
||||
static public boolean USE_MAX_SPEED = true;
|
||||
@ConfigurableField(category = "Disk", defaultValue = "", shortName = "d1", name = "Drive 1 disk image", description = "Path of disk 1")
|
||||
public String disk1;
|
||||
@ConfigurableField(category = "Disk", defaultValue = "", shortName = "d2", name = "Drive 2 disk image", description = "Path of disk 1")
|
||||
@ConfigurableField(category = "Disk", defaultValue = "", shortName = "d2", name = "Drive 2 disk image", description = "Path of disk 2")
|
||||
public String disk2;
|
||||
|
||||
public CardDiskII(Computer computer) {
|
||||
|
Loading…
Reference in New Issue
Block a user