mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-12 00:58:12 +01:00
fix(tapes): the moment asked while a file is read goes to the window still open, not one closed meanwhile
This commit is contained in:
@@ -457,8 +457,9 @@ public sealed class HaslerTapeWindow : Window
|
||||
};
|
||||
window.Show(this);
|
||||
await window.OpenAsync(box.Path);
|
||||
// The last moment asked for while the file was read.
|
||||
if (_wantedAt.Remove(box.Path, out double wanted))
|
||||
// The last moment asked for while the file was read; not a window closed meanwhile, whose file another reads.
|
||||
if (_blackBoxes.TryGetValue(box.Path, out var current) && current == window
|
||||
&& _wantedAt.Remove(box.Path, out double wanted))
|
||||
window.SeekTo(wanted);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user