mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 01:10:12 +02:00
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)
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. |
||
---|---|---|
src | ||
.gitattributes | ||
.gitignore | ||
COPYRIGHT | ||
LICENSE | ||
README.md | ||
zen-alpha-tangerine.svg |
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