Some components used by @zen-browser as an attempt to make firefox forks a better place (Archived and Privated on Nov 4 2024 - neccesarry for older Zen builds)
Find a file
Kristijan Ribarić d3ac1895e5 feat(workspaces): Improve workspace change notification and handling
This commit improves the notification and handling of workspace changes by:

- **Introducing a dedicated observer notification system:** The `ZenWorkspacesStorage` now uses a private helper method (`_notifyWorkspacesChanged`) to notify observers with a list of changed workspace UUIDs. This provides a more efficient and flexible notification system.
- **Updating `ZenWorkspacesTracker` to parse UUIDs:** The `ZenWorkspacesTracker` now correctly parses the JSON stringified array of UUIDs received from the observer, allowing it to handle multiple workspace changes in a single notification.
- **Refactoring `saveWorkspace`, `removeWorkspace`, `setDefaultWorkspace`, and `updateWorkspaceOrder`:** These methods now consistently collect and notify observers about changed UUIDs.
- **Removing unnecessary code:** The previous approach of notifying observers individually for each change has been removed, leading to code simplification and reduced complexity.

This commit ensures that workspace changes are more reliably and efficiently tracked, leading to a smoother and more responsive workspace management experience.
2024-10-05 22:09:54 +02:00
src feat(workspaces): Improve workspace change notification and handling 2024-10-05 22:09:54 +02:00
.gitattributes refactor: Update ZenKeyboardShortcuts to include split view and workspace actions 2024-08-11 13:37:44 +02:00
.gitignore Initial commit 2024-08-05 19:01:01 +02:00
COPYRIGHT Create COPYRIGHT 2024-08-22 12:51:38 +08:00
LICENSE Update LICENSE: Add full CC-BY-SA 4.0 text 2024-08-22 12:50:44 +08:00
README.md Update README.md 2024-08-30 22:03:12 +01:00
zen-alpha-tangerine.svg Add files via upload 2024-08-30 22:01:37 +01:00

Components

Some components used by @zen-browser as an attempt to make firefox forks a better place

License

Zen Core Components © 2024 by Zen's Team is licensed under CC BY-SA 4.0