mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-23 15:47:23 +08:00
feat: 添加主窗口失去焦点时禁用最大化功能
This commit is contained in:
@@ -247,5 +247,7 @@ export function createMainWindow(icon: Electron.NativeImage): BrowserWindow {
|
||||
// 保存主窗口引用
|
||||
mainWindowInstance = mainWindow;
|
||||
|
||||
mainWindow.on('blur', () => mainWindow && mainWindow.setMaximizable(false))
|
||||
|
||||
return mainWindow;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user