From 88dd4468e503525af2d38e0ddf5ed18e261f5f58 Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Wed, 28 Oct 2020 22:34:43 +0000 Subject: [PATCH] Remember checklist page across close/open of dlg Path from Michael DANILOV --- gui/dialogs/checklist.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/dialogs/checklist.xml b/gui/dialogs/checklist.xml index 0174039d2..33c3d3572 100644 --- a/gui/dialogs/checklist.xml +++ b/gui/dialogs/checklist.xml @@ -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");