From 1b146ff2339e0268e52081518529b151750dd4cd Mon Sep 17 00:00:00 2001 From: George Karagkiaouris Date: Tue, 12 Nov 2024 10:30:18 -0500 Subject: [PATCH] Open croppers when activating the app --- main/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main/index.ts b/main/index.ts index eaf52b42..f195d8b0 100644 --- a/main/index.ts +++ b/main/index.ts @@ -124,6 +124,12 @@ const checkForUpdates = () => { checkForUpdates(); })(); +app.on('activate', () => { + if (!windowManager.cropper.isOpen()) { + windowManager.cropper?.open(); + } +}); + app.on('window-all-closed', (event: any) => { app.dock.hide(); event.preventDefault();