mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-06 04:41:08 +08:00
fix(desktop): refit the macOS workspace after full-screen transitions
This commit is contained in:
@@ -880,6 +880,10 @@ else {
|
||||
window.webContents.on('will-navigate', event => event.preventDefault());
|
||||
window.webContents.setWindowOpenHandler(() => ({ action: 'deny' }));
|
||||
window.on('resize', layout);
|
||||
if (process.platform === 'darwin') {
|
||||
window.on('enter-full-screen', layout);
|
||||
window.on('leave-full-screen', layout);
|
||||
}
|
||||
window.on('close', event => { if (!exitAllowed) { event.preventDefault(); app.quit(); } });
|
||||
ipcMain.on('desktop:status-sync', event => {
|
||||
trustedShell(event);
|
||||
|
||||
Reference in New Issue
Block a user