1
0
Fork 0

Remember checklist page across close/open of dlg

Path from Michael DANILOV
This commit is contained in:
Stuart Buchanan 2020-10-28 22:34:43 +00:00
parent 5b01752fb0
commit 88dd4468e5

View file

@ -299,9 +299,9 @@
var s = getprop("/sim/gui/dialogs/checklist/selected-checklist");
setprop("/sim/gui/dialogs/checklist/selected-checklist-max-pages", checklist_size[s]);
setprop("/sim/gui/dialogs/checklist/selected-page", 0);
var currentPage = getprop("/sim/gui/dialogs/checklist/selected-page");
setprop("/sim/gui/dialogs/checklist/next-available", 1);
setprop("/sim/gui/dialogs/checklist/selected-page-text", "1 / " ~ checklist_size[s]);
setprop("/sim/gui/dialogs/checklist/selected-page-text", (currentPage + 1) ~ " / " ~ checklist_size[s]);
} else {
var group = gui.findElementByName(dlgRoot, "checklist-table-group");