Update SharpIdeCodeEdit.cs

This commit is contained in:
Matt Parker
2025-10-09 00:59:51 +10:00
parent e57fe03348
commit 59249ce850

View File

@@ -50,8 +50,8 @@ public partial class SharpIdeCodeEdit : CodeEdit
public override void _ExitTree()
{
_currentFile.FileContentsChangedExternallyFromDisk.Unsubscribe(OnFileChangedExternallyFromDisk);
_currentFile.FileContentsChangedExternally.Unsubscribe(OnFileChangedExternallyInMemory);
_currentFile?.FileContentsChangedExternallyFromDisk.Unsubscribe(OnFileChangedExternallyFromDisk);
_currentFile?.FileContentsChangedExternally.Unsubscribe(OnFileChangedExternallyInMemory);
}
private void OnBreakpointToggled(long line)