Checklists: go to last selected page on open
This commit is contained in:
parent
a9bd141153
commit
8c7fc11905
1 changed files with 4 additions and 4 deletions
|
@ -21,8 +21,10 @@
|
||||||
|
|
||||||
if (size(checklists) > 0) {
|
if (size(checklists) > 0) {
|
||||||
|
|
||||||
setprop("sim/gui/dialogs/checklist/selected-checklist", checklists[0].getNode("title", 1).getValue());
|
if (getprop("sim/gui/dialogs/checklist/selected-checklist") == nil) {
|
||||||
setprop("sim/gui/dialogs/checklist/selected-page", 0);
|
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 combo = gui.findElementByName(dlgRoot, "checklist-combo");
|
||||||
var group = gui.findElementByName(dlgRoot, "checklist-table-group");
|
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 {
|
} else {
|
||||||
var group = gui.findElementByName(dlgRoot, "checklist-table-group");
|
var group = gui.findElementByName(dlgRoot, "checklist-table-group");
|
||||||
var table = group.getNode("text", 1);
|
var table = group.getNode("text", 1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue