mirror of
https://github.com/frappe/books.git
synced 2026-08-24 10:04:45 -05:00
fix: don't log telem on dummy create
- remove redundant calls - add telem for app open
This commit is contained in:
@@ -16,17 +16,6 @@ import {
|
||||
import { saveHtmlAsPdf } from './saveHtmlAsPdf';
|
||||
|
||||
export default function registerIpcMainActionListeners(main: Main) {
|
||||
ipcMain.handle(IPC_ACTIONS.TOGGLE_MAXIMIZE_CURRENT_WINDOW, (event) => {
|
||||
const maximized = main.mainWindow!.isFullScreen();
|
||||
if (maximized) {
|
||||
main.mainWindow?.setFullScreen(false);
|
||||
main.mainWindow?.setSize(main.WIDTH, main.HEIGHT, true);
|
||||
} else {
|
||||
main.mainWindow?.setFullScreen(true);
|
||||
}
|
||||
return maximized;
|
||||
});
|
||||
|
||||
ipcMain.handle(IPC_ACTIONS.GET_OPEN_FILEPATH, async (event, options) => {
|
||||
return await dialog.showOpenDialog(main.mainWindow!, options);
|
||||
});
|
||||
|
||||
@@ -20,14 +20,6 @@ export default function registerIpcMainMessageListeners(main: Main) {
|
||||
main.mainWindow!.reload();
|
||||
});
|
||||
|
||||
ipcMain.on(IPC_MESSAGES.CLOSE_CURRENT_WINDOW, () => {
|
||||
main.mainWindow!.close();
|
||||
});
|
||||
|
||||
ipcMain.on(IPC_MESSAGES.MINIMIZE_CURRENT_WINDOW, () => {
|
||||
main.mainWindow!.minimize();
|
||||
});
|
||||
|
||||
ipcMain.on(IPC_MESSAGES.OPEN_EXTERNAL, (_, link) => {
|
||||
shell.openExternal(link);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user