删除无用代码

This commit is contained in:
yj 2024-10-16 16:44:57 +08:00
parent f08ef19fbe
commit 5125b83a93
1 changed files with 0 additions and 5 deletions

View File

@ -348,12 +348,7 @@ app.on('ready', () => {
});
// 设置子窗口
ipcMain.handle('setChildWindow', (event, config) => {
const child = childWindow[config.key];
const display = screen.getDisplayMatching({ ...child.getBounds() });
const { width, height } = display.size
let x, y;
if (config.key === 'shareScreenWindow') {
x = Math.round((width - config.width) / 2);
childWindow[config.key].setBounds({ width: config.width })
}
});