mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 20:59:26 -06:00
Merge remote-tracking branch 'origin/main' into claude/asm-parser-refactor
This commit is contained in:
@@ -227,7 +227,12 @@ export abstract class Pane<S> {
|
||||
/** Close the pane if the compiler this pane was attached to closes */
|
||||
protected onCompilerClose(compilerId: number) {
|
||||
if (this.compilerInfo.compilerId === compilerId) {
|
||||
_.defer(() => this.container.close());
|
||||
_.defer(() => {
|
||||
// Check if container is still valid before attempting to close
|
||||
if (this.container?.parent && this.container.layoutManager?.isInitialised) {
|
||||
this.container.close();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user