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ć 9bcb66c768 feat(workspaces): Use preferences to manage active workspace
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.
2024-10-03 10:19:18 +02:00
src feat(workspaces): Use preferences to manage active workspace 2024-10-03 10:19:18 +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