UI: Trigger RAM checking on tab closure (#1279)

Fixes UI bug described at https://discord.com/channels/415207508303544321/415213413745164318/1240361787564490854
This commit is contained in:
gmcew 2024-05-17 12:46:04 +01:00 committed by GitHub
parent 7113ee5425
commit 1d8a1d5089
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -292,6 +292,7 @@ function Root(props: IProps): React.ReactElement {
editorRef.current.setModel(currentScript.model);
editorRef.current.setPosition(currentScript.lastPosition);
editorRef.current.revealLineInCenter(currentScript.lastPosition.lineNumber);
parseCode(currentScript.code);
editorRef.current.focus();
}
}