added prj editing page, must change to dialog bcz page too big
This commit is contained in:
@@ -8,7 +8,6 @@ class Editor {
|
||||
final String name;
|
||||
final String command;
|
||||
final String commandTemplate;
|
||||
// final Icon icon;
|
||||
|
||||
const Editor(
|
||||
this.sname,
|
||||
@@ -39,6 +38,7 @@ class Editor {
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return {
|
||||
"sname": sname,
|
||||
"name": name,
|
||||
"command": command,
|
||||
"commandTemplate": commandTemplate,
|
||||
@@ -50,7 +50,8 @@ class Editor {
|
||||
if (!data.containsKey("name") ||
|
||||
!data.containsKey("command") ||
|
||||
!data.containsKey("commandTemplate") ||
|
||||
!data.containsKey("id")) {
|
||||
!data.containsKey("id") ||
|
||||
!data.containsKey("sname")) {
|
||||
print("Found invalid editor config when parsing: $data");
|
||||
return Editor("!!", "null", "null", "null", "null");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user