Windows 下改用原生窗口调整方式(#2137)

This commit is contained in:
lyswhut
2024-12-02 00:07:00 +08:00
parent 28d0412adc
commit 5d1b1e48d7
5 changed files with 17 additions and 10 deletions
+2 -1
View File
@@ -55,6 +55,7 @@ const winEvent = () => {
browserWindow.on('resize', () => {
// bounds = browserWindow.getBounds()
// console.log(bounds)
isWinBoundsUpdateing = true
const bounds = browserWindow!.getBounds()
saveBoundsConfig({
'desktopLyric.x': bounds.x,
@@ -122,7 +123,7 @@ export const createWindow = () => {
hasShadow: false,
// enableRemoteModule: false,
// icon: join(global.__static, isWin ? 'icons/256x256.ico' : 'icons/512x512.png'),
resizable: false,
resizable: isWin,
minimizable: false,
maximizable: false,
fullscreenable: false,