Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
Merge remote-tracking branch 'origin/main' into fix/macos-dock-icon
Gabriel Steinaf7d364aadcf
diff --cc src/helpers/tray.jsindex 770112fe6,5de87379e..5a4f651ad--- a/src/helpers/tray.js+++ b/src/helpers/tray.js@@@ -61,14 -68,39 +69,35 @@@ class TrayManager});}+ syncControlPanelWindow() {+ if (this.windowManager) {+ this.controlPanelWindow = this.windowManager.controlPanelWindow || this.controlPanelWindow;+ }+ this.attachControlPanelListeners(this.controlPanelWindow);+ return this.controlPanelWindow;+ }++ isControlPanelVisible() {+ const win = this.syncControlPanelWindow();+ return !!win && !win.isDestroyed() && win.isVisible() && !win.isMinimized();+ }++ // On Linux a window parked on another workspace still reports as visible, so+ // the first click hides it and the next re-shows it on the current workspace.+ async toggleControlPanelFromTray() {+ if (this.isControlPanelVisible()) {+ this.windowManager?.hideControlPanelToTray();+ return;+ }++ await this.showControlPanelFromTray();+ }+async showControlPanelFromTray() {try {- if (this.windowManager) {- this.controlPanelWindow = this.windowManager.controlPanelWindow || this.controlPanelWindow;- }- this.attachControlPanelListeners(this.controlPanelWindow);+ this.syncControlPanelWindow();if (this.controlPanelWindow && !this.controlPanelWindow.isDestroyed()) {- // Show dock icon on macOS when control panel opens- if (process.platform === "darwin" && app.dock) {- app.dock.show();- }if (this.controlPanelWindow.isMinimized()) {this.controlPanelWindow.restore();}