Replace EveryValueChanged with ReactiveProperty

This commit is contained in:
Matt Parker
2025-12-05 20:55:03 +10:00
parent 275e822b77
commit b562c4c129
3 changed files with 22 additions and 20 deletions

View File

@@ -376,7 +376,7 @@ public partial class SharpIdeCodeEdit : CodeEdit
if (@event is InputEventMouseButton { Pressed: true } mouseEvent)
{
var (col, line) = GetLineColumnAtPos((Vector2I)mouseEvent.Position);
var current = _navigationHistoryService.Current;
var current = _navigationHistoryService.Current.Value;
if (current!.File != _currentFile) throw new InvalidOperationException("Current navigation history file does not match the focused code editor file.");
if (current.LinePosition.Line != line) // Only record a new navigation if the line has changed
{