| 136 | } |
| 137 | |
| 138 | function 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 | |
| 162 | function showErrorDialog(timeoutID) { |
| 163 | if(!splashWindow.isVisible()) { |