Files
VRCX/src-electron
玺朽 7b9490e110 fix(macOS): resolve tray-related issues and set tray minimization as default (#1449)
* Add custom macOS-style title bar

Introduces a custom MacOSTitleBar component for macOS, updates the Electron window to use 'hiddenInset' titleBarStyle, and adjusts App.vue to conditionally render the new title bar and add appropriate padding. This improves the native look and feel on macOS platforms.

* Improve macOS Dock behavior and tray settings

fix(macOS): resolve tray-related issues and set tray minimization as default

1. Fix the problem where the app couldn't be reopened after clicking the window's close button (red light) when "minimize to tray" was enabled. Ensured proper window visibility control via `mainWindow.show()` on Dock activation.

2. Resolve the issue where the app couldn't be closed from the Dock when "minimize to tray" was enabled. Added explicit quit state handling (`appIsQuitting = true`) in `before-quit` to bypass tray minimization logic during Dock-initiated quits.

3. Set "minimize to tray" as the default configuration for macOS to align with platform conventions. Implemented platform-specific default values in state initialization.

These changes improve macOS compatibility by fixing critical tray interaction issues and aligning default behavior with native user expectations.
2025-10-27 19:05:32 +11:00
..
2025-08-24 09:49:21 +12:00
2025-10-09 21:32:31 +13:00
2025-02-03 23:59:59 +13:00
2025-09-02 22:32:53 +12:00
2025-10-08 00:33:51 +13:00
2025-09-10 08:39:15 +12:00
2025-09-02 22:32:53 +12:00