MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / forceQuitAndInstallUpdate

Function forceQuitAndInstallUpdate

runtime/src/js/pgadmin.js:204–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202
203// This function will force quit and install update and restart the app
204function forceQuitAndInstallUpdate() {
205 // Disable beforeunload handlers
206 const preventUnload = (event) => {
207 event.preventDefault();
208 pgAdminMainScreen.webContents.off('will-prevent-unload', preventUnload);
209 };
210 pgAdminMainScreen.webContents.on('will-prevent-unload', preventUnload);
211 // Set flag to show notification after restart
212 configStore.set('update_installed', true);
213 cleanupAutoUpdateFlag();
214 autoUpdater.quitAndInstall();
215}
216
217// This functions is used to start the pgAdmin4 server by spawning a
218// separate process.

Callers 2

pgadmin.jsFile · 0.85

Calls 3

cleanupAutoUpdateFlagFunction · 0.85
onMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected