1
0
Fork 0

Checklists: go to last selected page on open

This commit is contained in:
Richard Senior 2015-03-20 10:56:40 +00:00
parent a9bd141153
commit 8c7fc11905

View file

@ -21,8 +21,10 @@
if (size(checklists) > 0) {
setprop("sim/gui/dialogs/checklist/selected-checklist", checklists[0].getNode("title", 1).getValue());
setprop("sim/gui/dialogs/checklist/selected-page", 0);
if (getprop("sim/gui/dialogs/checklist/selected-checklist") == nil) {
setprop("sim/gui/dialogs/checklist/selected-checklist", checklists[0].getNode("title", 1).getValue());
setprop("sim/gui/dialogs/checklist/selected-page", 0);
}
var combo = gui.findElementByName(dlgRoot, "checklist-combo");
var group = gui.findElementByName(dlgRoot, "checklist-table-group");
@ -213,8 +215,6 @@
}
}
setprop("sim/gui/dialogs/checklist/selected-checklist",
checklists[0].getNode("title").getValue());
} else {
var group = gui.findElementByName(dlgRoot, "checklist-table-group");
var table = group.getNode("text", 1);