* Fix macOS 26 GPU performance issue by upgrading to Electron 38
Upgrades Electron from 34.5.1 to 38.6.0 to resolve excessive WindowServer
GPU usage on macOS 26 (Sequoia). This issue was caused by Electron's
override of the private _cornerMask API, which forced the compositor to
treat window masks as dynamic rather than static, resulting in persistent
high GPU load.
Changes:
- Upgrade electron: 34.5.1 → 38.6.0
- Upgrade electron-mksnapshot: 34.5.1 → 38.6.0
- Upgrade @electron/rebuild: ^3.7.1 → ^3.7.2
- Upgrade node-abi: ^3.67.0 → ^3.81.0 (required for Electron 38 support)
The fix was introduced in Electron 36.9.2, 37.6.0, 38.2.0, and all later
versions. We're upgrading to 38.6.0 as it's the latest stable version
compatible with Node 20.11.0.
Fixes: electron/electron#48376
* Use optional chaining
Signed-off-by: Philip Peterson <1326208+philip-peterson@users.noreply.github.com>
---------
Signed-off-by: Philip Peterson <1326208+philip-peterson@users.noreply.github.com>
Co-authored-by: Philip Peterson <1326208+philip-peterson@users.noreply.github.com>
* Fixed some redundant code, index.ts (Check line 210)
Also prefixed 'event' in line 226 and 232 with _ since they are unused
* Fixed a wrongful autoimport
* Removed a finished FIXME
* Name the function and fix typo
Co-authored-by: Labhansh Agrawal <labhansh.agrawal@gmail.com>