diff --git a/README.md b/README.md index b3022c2..e9ed892 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,6 @@ Yes and no: - Resize the window by clicking and dragging. - Use `Cmd+1/2/3/A/+/-` or drag to resize the internal webviews. - `Cmd +` and `Cmd -` are especially useful if you have a lot of chats enabled! - - Use `Cmd+Shift+F` to set the width to 100% of your screen. - **Model Toggle**: diff --git a/index.js b/index.js index 4a05fed..b6ce031 100644 --- a/index.js +++ b/index.js @@ -56,9 +56,6 @@ if (process.env.NODE_ENV === 'development') { } log.info('store reset', store); // Logging the store -// Initialize fullscreen toggle -store.set('isFullscreen', false); - // Context menu for electron apps const contextMenu = require('electron-context-menu'); @@ -89,7 +86,7 @@ app.on('ready', () => { enableWebView: true, // from chatgpt // nativeWindowOpen: true, }, - width: store.get('isFullscreen', false) ? width : 1200, + width: 1200, height: 750, }, tray, @@ -176,15 +173,6 @@ app.on('ready', () => { }); }, }, - { - label: 'Toggle Fullscreen', - accelerator: 'CommandorControl+Shift+F', - type: 'checkbox', - checked: store.get('isFullscreen', false), - click: () => { - store.set('isFullscreen', !store.get('isFullscreen', false)); - }, - }, ]; const separator = { type: 'separator' }; @@ -304,18 +292,6 @@ app.on('ready', () => { } }); - store.onDidChange('isFullscreen', (isFullscreen) => { - const { window } = mb; - if (isFullscreen) { - window.setBounds({ x: 0, width: width, height: window.getSize()[1] }); - } else { - window.setBounds({ - x: width - 1200, - width: 1200, - height: window.getSize()[1], - }); - } - }); Menu.setApplicationMenu(menu, { autoHideMenuBar: false }); // open devtools if in dev mode