MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / openConfigure

Function openConfigure

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

Source from the content-addressed store, hash-verified

136}
137
138function openConfigure() {
139 if (configureWindow === null || configureWindow?.isDestroyed()) {
140 configureWindow = new BrowserWindow({
141 show: false,
142 width: 600,
143 height: 580,
144 position: 'center',
145 resizable: false,
146 parent: pgAdminMainScreen,
147 icon: '../../assets/pgAdmin4.png',
148 webPreferences: {
149 preload: path.join(__dirname, 'other_preload.js'),
150 },
151 });
152 configureWindow.loadFile('./src/html/configure.html');
153 configureWindow.once('ready-to-show', ()=>{
154 configureWindow.show();
155 });
156 } else {
157 configureWindow.hide();
158 configureWindow.show();
159 }
160}
161
162function showErrorDialog(timeoutID) {
163 if(!splashWindow.isVisible()) {

Callers

nothing calls this directly

Calls 4

joinMethod · 0.80
loadFileMethod · 0.80
onceMethod · 0.80
showMethod · 0.45

Tested by

no test coverage detected