mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
save zoom level
This commit is contained in:
@@ -212,6 +212,10 @@ ipcMain.on('app-started', async (event, arg) => {
|
|||||||
autoUpdater.checkForUpdates();
|
autoUpdater.checkForUpdates();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (initialConfig['winZoomLevel'] != null) {
|
||||||
|
mainWindow.webContents.zoomLevel = initialConfig['winZoomLevel'];
|
||||||
|
}
|
||||||
});
|
});
|
||||||
ipcMain.on('window-action', async (event, arg) => {
|
ipcMain.on('window-action', async (event, arg) => {
|
||||||
if (!mainWindow) {
|
if (!mainWindow) {
|
||||||
@@ -394,6 +398,7 @@ function createWindow() {
|
|||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
winBounds: mainWindow.getBounds(),
|
winBounds: mainWindow.getBounds(),
|
||||||
winIsMaximized: mainWindow.isMaximized(),
|
winIsMaximized: mainWindow.isMaximized(),
|
||||||
|
winZoomLevel: mainWindow.webContents.zoomLevel,
|
||||||
}),
|
}),
|
||||||
'utf-8'
|
'utf-8'
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user