mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-26 16:07:33 +01:00
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:
parent
7113ee5425
commit
1d8a1d5089
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user