mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-24 17:50:20 -06:00
Fix an issue where file dialog is not focussed on open in electron.
This commit is contained in:
parent
b9ffbf73e0
commit
ab25238f17
@ -337,9 +337,9 @@ function launchPgAdminWindow() {
|
|||||||
let splashWindow;
|
let splashWindow;
|
||||||
|
|
||||||
// setup preload events.
|
// setup preload events.
|
||||||
ipcMain.handle('showOpenDialog', (_e, options) => dialog.showOpenDialog(options));
|
ipcMain.handle('showOpenDialog', (e, options) => dialog.showOpenDialog(BrowserWindow.fromWebContents(e.sender), options));
|
||||||
ipcMain.handle('showSaveDialog', (_e, options) => dialog.showSaveDialog(options));
|
ipcMain.handle('showSaveDialog', (e, options) => dialog.showSaveDialog(BrowserWindow.fromWebContents(e.sender), options));
|
||||||
ipcMain.handle('showMessageBox', (_e, options) => dialog.showMessageBox(options));
|
ipcMain.handle('showMessageBox', (e, options) => dialog.showMessageBox(BrowserWindow.fromWebContents(e.sender), options));
|
||||||
ipcMain.handle('getStoreData', (_e, key) => key ? configStore.get(key) : configStore.store);
|
ipcMain.handle('getStoreData', (_e, key) => key ? configStore.get(key) : configStore.store);
|
||||||
ipcMain.handle('setStoreData', (_e, newValues) => {
|
ipcMain.handle('setStoreData', (_e, newValues) => {
|
||||||
configStore.store = {
|
configStore.store = {
|
||||||
|
Loading…
Reference in New Issue
Block a user