Skip to content

Commit 6471e1d

Browse files
author
Akos Kitta
committed
fix: dispose the listeners on unload
Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
1 parent 2c1d125 commit 6471e1d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

arduino-ide-extension/src/browser/theia/core/window-title-updater.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { nls } from '@theia/core';
1+
import { nls } from '@theia/core/lib/common/nls';
22
import * as remote from '@theia/core/electron-shared/@electron/remote';
33
import { FrontendApplication } from '@theia/core/lib/browser/frontend-application';
44
import { FrontendApplicationConfigProvider } from '@theia/core/lib/browser/frontend-application-config-provider';
@@ -75,6 +75,10 @@ export class WindowTitleUpdater extends TheiaWindowTitleUpdater {
7575
]);
7676
}
7777

78+
onStop(): void {
79+
this.toDispose.dispose();
80+
}
81+
7882
protected override handleWidgetChange(widget?: Widget | undefined): void {
7983
if (isOSX) {
8084
this.maybeUpdateRepresentedFilename(widget);

0 commit comments

Comments
 (0)