implemented opening and closing of projects right from the project list
This commit is contained in:
@@ -72,7 +72,7 @@ public class Project implements Mappable {
|
||||
switch (key){
|
||||
case DESCRIPTION: description = json.getString(key); break;
|
||||
case NAME: name = json.getString(key); break;
|
||||
case STATUS: status = Status.of(json.getInt(key)); break;
|
||||
case STATUS: status = json.get(key) instanceof Number number ? Status.of(number.intValue()) : Status.valueOf(json.getString(key)); break;
|
||||
default: key = null;
|
||||
}
|
||||
if (key != null) dirtyFields.add(key);
|
||||
|
||||
Reference in New Issue
Block a user