mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-12 17:11:04 +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);
|
window.Show(this);
|
||||||
await window.OpenAsync(box.Path);
|
await window.OpenAsync(box.Path);
|
||||||
// The last moment asked for while the file was read.
|
// The last moment asked for while the file was read; not a window closed meanwhile, whose file another reads.
|
||||||
if (_wantedAt.Remove(box.Path, out double wanted))
|
if (_blackBoxes.TryGetValue(box.Path, out var current) && current == window
|
||||||
|
&& _wantedAt.Remove(box.Path, out double wanted))
|
||||||
window.SeekTo(wanted);
|
window.SeekTo(wanted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user