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

Function reloadApp

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

Source from the content-addressed store, hash-verified

182}
183
184function reloadApp() {
185 const currWin = BrowserWindow.getFocusedWindow();
186
187 const preventUnload = (event) => {
188 event.preventDefault();
189 currWin.webContents.off('will-prevent-unload', preventUnload);
190 };
191 currWin.webContents.on('will-prevent-unload', preventUnload);
192 currWin.webContents.reload();
193}
194
195
196// Remove auto_update_enabled from configStore on app close or quit

Callers

nothing calls this directly

Calls 2

onMethod · 0.80
reloadMethod · 0.80

Tested by

no test coverage detected