Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix: focus control panel on deep link

Gabriel Stein932bca5c4806
diff --git a/main.js b/main.js
index 7ad86ced7..a360f0694 100644
--- a/main.js
+++ b/main.js
@@ -268,11 +268,15 @@ function initializeManagers() {
});
}
-// Handle the protocol on macOS
app.on('open-url', (event, url) => {
event.preventDefault();
- if (url.startsWith(`${OAUTH_PROTOCOL}://`)) {
- handleOAuthDeepLink(url);
+ if (!url.startsWith(`${OAUTH_PROTOCOL}://`)) return;
+
+ handleOAuthDeepLink(url);
+
+ if (windowManager && isLiveWindow(windowManager.controlPanelWindow)) {
+ windowManager.controlPanelWindow.show();
+ windowManager.controlPanelWindow.focus();
}
});