mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-12 09:04:09 +01:00
fix(tapes): a session with no tape shows no blank paper beside the words
This commit is contained in:
@@ -614,6 +614,8 @@ public sealed class HaslerTapeWindow : Window
|
|||||||
_tapeless = session.StartedUtc;
|
_tapeless = session.StartedUtc;
|
||||||
_view.Tape = null;
|
_view.Tape = null;
|
||||||
_view.Mark = null;
|
_view.Mark = null;
|
||||||
|
// With no tape the view would still draw a strip of blank paper beside the words.
|
||||||
|
_scroll.IsVisible = false;
|
||||||
_cursor.Text = "";
|
_cursor.Text = "";
|
||||||
_summary.Text = App.Loc[session.BlackBoxes.Count > 0 ? "HaslerSessionNoTape" : "HaslerSessionEmpty"];
|
_summary.Text = App.Loc[session.BlackBoxes.Count > 0 ? "HaslerSessionNoTape" : "HaslerSessionEmpty"];
|
||||||
}
|
}
|
||||||
@@ -629,6 +631,7 @@ public sealed class HaslerTapeWindow : Window
|
|||||||
bool another = file.Path != _shown?.Path;
|
bool another = file.Path != _shown?.Path;
|
||||||
_shown = file;
|
_shown = file;
|
||||||
_tapeless = null;
|
_tapeless = null;
|
||||||
|
_scroll.IsVisible = tape is not null;
|
||||||
if (tape is null)
|
if (tape is null)
|
||||||
{
|
{
|
||||||
_view.Tape = null;
|
_view.Tape = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user