cherry-studio/src/main
beyondkmp d4fe5dfa32 refactor: update zoom handling in IPC and settings (#5868)
* refactor: update zoom handling in IPC and settings

* renamed zoom-related IPC channels for clarity
* refactored zoom handling logic in ipc.ts and ShortcutService
* removed unused zoom factor state management from settings
* updated DisplaySettings component to manage zoom via buttons
* localized zoom settings in multiple languages

* refactor: remove unused zoom factor state from settings

* eliminated the zoomFactor state from initialSettings as part of the zoom handling refactor

* refactor: improve zoom handling in DisplaySettings component

* initialized current zoom value on component mount
* refactored resize event listener to prevent memory leaks
* added cleanup for resize event listener to enhance performance

* refactor: enhance resize event handling in DisplaySettings component

* added logic to track previous window width to prevent unnecessary updates during resize events
* improved comments for clarity on zoom handling and resize event listener functionality

* refactor: streamline zoom handling across IPC and ShortcutService

* updated handleZoomFactor function to accept an array of BrowserWindows for batch processing
* simplified zoom factor adjustments in IPC and shortcut handlers
* removed unnecessary window destruction checks for improved performance
2025-05-11 18:42:25 +08:00
..
embeddings feat: 添加嵌入维度配置 (#3947) 2025-04-24 10:18:23 +08:00
integration/nutstore/sso/lib build: remove sentry integration 2025-04-24 11:48:53 +08:00
loader build: replace @llm-tools/embedjs with @cherrystudio/embedjs 2025-03-26 18:14:04 +08:00
mcpServers fix: clean up code (#5851) 2025-05-11 00:37:01 +08:00
reranker feat: combine to general reranker (#5818) 2025-05-10 13:42:54 +08:00
services refactor: update zoom handling in IPC and settings (#5868) 2025-05-11 18:42:25 +08:00
utils refactor: update zoom handling in IPC and settings (#5868) 2025-05-11 18:42:25 +08:00
config.ts refactor(WindowService, ThemeProvider): streamline title bar style and theme toggling logic (#5633) 2025-05-04 13:19:56 +08:00
constant.ts feat: support portable config dir (#5039) 2025-04-24 17:23:56 +08:00
electron.d.ts feat: add the ability to display the application in tray #297 2024-11-09 08:42:09 +08:00
env.d.ts feat: added vite_main_bundle_id config and improved code cleanliness 2024-09-15 10:35:02 +08:00
index.ts fix: more robust portable data dir setup logic (#5347) 2025-04-26 15:29:54 +08:00
ipc.ts refactor: update zoom handling in IPC and settings (#5868) 2025-05-11 18:42:25 +08:00