mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-18 14:18:03 +00:00
fix: win32 titlebar issue
This commit is contained in:
parent
2ecba8e161
commit
f702c33834
2 changed files with 23 additions and 17 deletions
|
|
@ -61,6 +61,12 @@ export function initIpcMain(win, store) {
|
|||
win.minimize();
|
||||
});
|
||||
|
||||
ipcMain.on("maximizeOrUnmaximize", () => {
|
||||
const isMaximized = win.isMaximized();
|
||||
isMaximized ? win.unmaximize() : win.maximize();
|
||||
win.webContents.send("isMaximized", isMaximized);
|
||||
});
|
||||
|
||||
ipcMain.on("settings", (event, options) => {
|
||||
store.set("settings", options);
|
||||
const isRegisterShortcut = globalShortcut.isRegistered(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue