Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e6b9d4e

Browse filesBrowse files
authored
Override the RELOAD_REQUESTED_SIGNAL correctly (arduino#880)
1 parent 93a374d commit e6b9d4e
Copy full SHA for e6b9d4e

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed

‎arduino-ide-extension/src/electron-main/theia/electron-main-application.ts

Copy file name to clipboardExpand all lines: arduino-ide-extension/src/electron-main/theia/electron-main-application.ts
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { URI } from '@theia/core/shared/vscode-uri';
1818
import * as electronRemoteMain from '@theia/core/electron-shared/@electron/remote/main';
1919
import { Deferred } from '@theia/core/lib/common/promise-util';
2020
import * as os from '@theia/core/lib/common/os';
21+
import { RELOAD_REQUESTED_SIGNAL, Restart } from '@theia/core/lib/electron-common/messaging/electron-messages';
2122

2223
app.commandLine.appendSwitch('disable-http-cache');
2324

@@ -157,7 +158,9 @@ export class ElectronMainApplication extends TheiaElectronMainApplication {
157158
app.on('second-instance', this.onSecondInstance.bind(this));
158159
app.on('window-all-closed', this.onWindowAllClosed.bind(this));
159160

160-
ipcMain.on('restart', ({ sender }) => {
161+
ipcMain.on(RELOAD_REQUESTED_SIGNAL, event => this.handleReload(event));
162+
163+
ipcMain.on(Restart, ({ sender }) => {
161164
this.restart(sender.id);
162165
});
163166
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.