From 1d8a1d5089e288b9fb140bfc12c96fee09e77dd7 Mon Sep 17 00:00:00 2001 From: gmcew <97335456+gmcew@users.noreply.github.com> Date: Fri, 17 May 2024 12:46:04 +0100 Subject: [PATCH] UI: Trigger RAM checking on tab closure (#1279) Fixes UI bug described at https://discord.com/channels/415207508303544321/415213413745164318/1240361787564490854 --- src/ScriptEditor/ui/ScriptEditorRoot.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ScriptEditor/ui/ScriptEditorRoot.tsx b/src/ScriptEditor/ui/ScriptEditorRoot.tsx index 6d2d82721..052d37ad0 100644 --- a/src/ScriptEditor/ui/ScriptEditorRoot.tsx +++ b/src/ScriptEditor/ui/ScriptEditorRoot.tsx @@ -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(); } }