From 2a559371ae6d6143be2fe47eaa63ddfdd0b41c22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=A2=D1=80=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Sat, 12 Sep 2026 22:12:25 +0300 Subject: [PATCH] ui: keep the selected file in state, drop the File: title line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The File: EF.DIR [LF] line doubled as the selection store: pysimFsClickFile wrote a formatted display string there and pysimFsRead/Save parsed it back (stripping '✗ ' and ' [TYPE]'). The pane now keeps the name in pysimFsSelected, the redundant title is gone (FID/type/size/FCI remain in the info block), and the dead pysimFsSelect() plus the unused 'File:' RU entry are removed. Read/Save still re-select on the server first: pySim's current selection is a shared cursor that tree expansion, scans and commands move, so it cannot identify the file shown in the pane. SW cache v121 -> v122; structural test updated. --- frontend/index.html | 25 +++++-------------------- frontend/sw.js | 2 +- frontend/tests/html.test.js | 10 +++++++--- 3 files changed, 13 insertions(+), 24 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 6f707ad..32fe3a8 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -866,7 +866,6 @@