mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 00:59:57 +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 updates the workspaces system to use preferences to manage the active workspace, instead of storing the active state in each workspace object. The following changes were made: - **ZenWorkspaces.mjs:** - Removed the `used` property from workspace objects and replaced it with a preference (`zen.workspaces.active`) to store the active workspace ID. - Modified the `getActiveWorkspace` and `changeWorkspace` methods to use preferences instead of the `used` property. - Added a new `isWorkspaceActive` method to check if a workspace is active. - **ZenWorkspacesStorage.mjs:** - Removed the `is_active` column from the `zen_workspaces` table. - Removed the `setActiveWorkspace` method as the active workspace is now managed by preferences. This change simplifies the code and makes it easier to manage the active workspace across multiple browser windows and doesn't write to the database on every workspace change. Additionaly, it enables local active workspace selection when workspace sync is implemented. |
||
---|---|---|
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