mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-05 09:26:34 +00:00

This commit refactors the pinned tab management code to improve clarity and reduce redundant checks. The following changes were made: - Moved pinned tab logic to a dedicated `gZenPinnedTabManager` class. - Removed unnecessary attribute checks for `zen-pinned-url`, `zen-pinned-title`, and `zen-pinned-icon` as these are now handled by the `gZenPinnedTabManager` class. - Simplified session restore logic for pinned tabs. - Updated the pinned tab context menu logic to utilize the `gZenPinnedTabManager` class. - Removed unnecessary code blocks related to pinned tabs. These changes improve the overall readability and maintainability of the pinned tab management code.