fix(tapes): a refresh of the list leaves the paper of an unreadable tape hidden

This commit is contained in:
maj00r
2026-11-11 18:51:47 +01:00
parent 3ef630459c
commit 59dbd9cc0d

View File

@@ -367,7 +367,9 @@ public sealed class HaslerTapeWindow : Window
_empty.Text = string.Format(App.Loc["HaslerNoTapes"], _tapes.Folder); _empty.Text = string.Format(App.Loc["HaslerNoTapes"], _tapes.Folder);
_empty.IsVisible = first is null; _empty.IsVisible = first is null;
_scroll.IsVisible = first is not null; // Shown again only by a tape loaded into it: one picked again as it is, unreadable, stays hidden.
if (first is null)
_scroll.IsVisible = false;
if (pick is null && again is not null) if (pick is null && again is not null)
{ {
// The session picked had no tape; picked again, it shows the tape it has now, or still none. // The session picked had no tape; picked again, it shows the tape it has now, or still none.