We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53c30a7 commit 2dbdfd9Copy full SHA for 2dbdfd9
1 file changed
apps/code/src/main/index.ts
@@ -124,21 +124,6 @@ app.on("before-quit", async (event) => {
124
125
event.preventDefault();
126
127
- // If an update is downloaded, install it instead of doing a normal shutdown.
128
- // installUpdate() handles its own lightweight cleanup and quitAndInstall.
129
- try {
130
- const updatesService = container.get<UpdatesService>(
131
- MAIN_TOKENS.UpdatesService,
132
- );
133
- if (updatesService.hasUpdateReady) {
134
- log.info("Update ready, installing on quit");
135
- const { installed } = await updatesService.installUpdate();
136
- if (installed) return;
137
- }
138
- } catch {
139
- // Updates service not available, fall through to normal shutdown
140
141
-
142
await lifecycleService.gracefulExit();
143
});
144
0 commit comments