Remember checklist page across close/open of dlg
Path from Michael DANILOV
This commit is contained in:
parent
5b01752fb0
commit
88dd4468e5
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue