From 0799080835fa93b4c7350d4cadde446259534868 Mon Sep 17 00:00:00 2001 From: "J.T. Sage" Date: Fri, 17 May 2024 12:36:43 -0400 Subject: [PATCH] fix savegame labels --- renderer/renderJS/savegame_ui.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/renderer/renderJS/savegame_ui.js b/renderer/renderJS/savegame_ui.js index 1a61b243..9acb0814 100644 --- a/renderer/renderJS/savegame_ui.js +++ b/renderer/renderJS/savegame_ui.js @@ -266,6 +266,11 @@ function updateCounts() { const quantity = element.querySelector('.quantity') quantity.innerHTML = selectCount[labelName] } + for ( const element of fsgUtil.query('[for^="check_savegame"]') ) { + const labelName = element.getAttribute('for').replace('check_savegame_', '') + const quantity = element.querySelector('.quantity') + quantity.innerHTML = selectCount[labelName] + } } function getColor(mod) {