feat(style): refactor layout, remove Header & Improve gateway readiness checks (#12)
This commit is contained in:
committed by
GitHub
Unverified
parent
86ddd843c4
commit
05b5874832
@@ -77,6 +77,9 @@ export function registerIpcHandlers(
|
||||
|
||||
// Cron task handlers (proxy to Gateway RPC)
|
||||
registerCronHandlers(gatewayManager);
|
||||
|
||||
// Window control handlers (for custom title bar on Windows/Linux)
|
||||
registerWindowHandlers(mainWindow);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1151,3 +1154,28 @@ function registerAppHandlers(): void {
|
||||
app.quit();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Window control handlers (for custom title bar on Windows/Linux)
|
||||
*/
|
||||
function registerWindowHandlers(mainWindow: BrowserWindow): void {
|
||||
ipcMain.handle('window:minimize', () => {
|
||||
mainWindow.minimize();
|
||||
});
|
||||
|
||||
ipcMain.handle('window:maximize', () => {
|
||||
if (mainWindow.isMaximized()) {
|
||||
mainWindow.unmaximize();
|
||||
} else {
|
||||
mainWindow.maximize();
|
||||
}
|
||||
});
|
||||
|
||||
ipcMain.handle('window:close', () => {
|
||||
mainWindow.close();
|
||||
});
|
||||
|
||||
ipcMain.handle('window:isMaximized', () => {
|
||||
return mainWindow.isMaximized();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user