Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove fullscreen mode keyboard shortcut; resolves #102, repeals #68 #104

Merged
merged 1 commit into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**:

Expand Down
26 changes: 1 addition & 25 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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' };
Expand Down Expand Up @@ -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
Expand Down