mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 08:46:00 +00:00
remember fullscreen state #230
This commit is contained in:
@@ -183,6 +183,9 @@ function createWindow() {
|
||||
if (initialConfig['winIsMaximized']) {
|
||||
mainWindow.maximize();
|
||||
}
|
||||
if (initialConfig['winIsFullscreen']) {
|
||||
mainWindow.setFullScreen(true);
|
||||
}
|
||||
|
||||
mainMenu = buildMenu();
|
||||
mainWindow.setMenu(mainMenu);
|
||||
@@ -203,6 +206,7 @@ function createWindow() {
|
||||
winBounds: mainWindow.getBounds(),
|
||||
winIsMaximized: mainWindow.isMaximized(),
|
||||
useNativeMenu: useNativeMenuSpecified,
|
||||
winIsFullscreen: mainWindow.isFullScreen(),
|
||||
}),
|
||||
'utf-8'
|
||||
);
|
||||
|
||||
@@ -594,6 +594,7 @@ registerCommand({
|
||||
id: 'app.toggleFullScreen',
|
||||
category: 'Application',
|
||||
name: 'Toggle full screen',
|
||||
keyText: 'F11',
|
||||
testEnabled: () => getElectron() != null,
|
||||
onClick: () => getElectron().send('window-action', 'fullscreen'),
|
||||
});
|
||||
@@ -642,7 +643,6 @@ registerCommand({
|
||||
onClick: () => openWebLink('https://opencollective.com/dbgate'),
|
||||
});
|
||||
|
||||
|
||||
registerCommand({
|
||||
id: 'app.zoomIn',
|
||||
category: 'Application',
|
||||
|
||||
Reference in New Issue
Block a user