Skip to content

Added New Window option to Tray#7995

Merged
FreeTubeBot merged 10 commits into
FreeTubeApp:developmentfrom
Devenor:tray
Oct 30, 2025
Merged

Added New Window option to Tray#7995
FreeTubeBot merged 10 commits into
FreeTubeApp:developmentfrom
Devenor:tray

Conversation

@Devenor

@Devenor Devenor commented Sep 7, 2025

Copy link
Copy Markdown
Contributor

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

Adds #7049 functionality to the Tray

Description

Tray menu option enabling to open a new Freetube instance.

Screenshots

imagen

Testing

When clicking the New Window option, a new window opens. Other windows hidden in the tray must remain there.

Desktop

  • OS: Windows, Linux
  • OS Version: Windows 10, Ubuntu 22.04.3 LTS
  • FreeTube version: 0.23.8 Beta

Additional context

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) September 7, 2025 11:21
@github-actions github-actions Bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Sep 7, 2025
Comment thread src/main/index.js Outdated
@absidue absidue added PR: changes requested and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels Sep 14, 2025
auto-merge was automatically disabled September 16, 2025 18:40

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) September 16, 2025 18:40
@Devenor

Devenor commented Sep 16, 2025

Copy link
Copy Markdown
Contributor Author

Done, but I was thinking that when the main window is hidden to the tray and there are other visible windows, none of them become the main window. Should I change that too?

@absidue absidue added PR: waiting for review For PRs that are complete, tested, and ready for review and removed PR: changes requested labels Sep 20, 2025
@absidue

absidue commented Sep 20, 2025

Copy link
Copy Markdown
Member

If it is easy to do, sure, if not then it would be better to leave it for a separate pull request.

auto-merge was automatically disabled September 21, 2025 19:31

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) September 21, 2025 19:31
@Devenor

Devenor commented Sep 21, 2025

Copy link
Copy Markdown
Contributor Author

I've added the following:

  • When all windows are hidden, the first one to be shown becomes the new main window.
  • If the main window is hidden, the one that has the focus becomes the new main window.
  • If no window has the focus (for example if they are behind another app), the last opened window becomes the new main window.

Seems to work fine. My only concern is about the timer in Linux, it works in my distro, but we might need to increase it a bit if it's not enough in others.

@github-actions

github-actions Bot commented Oct 7, 2025

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 14 days.

@efb4f5ff-1298-471a-8973-3d47447115dc

Copy link
Copy Markdown
Member

Hi @Devenor apologies for the delay. Past weeks were a bit hectic because we needed to adapt to YouTube's changes to get playback to unbreak.

Anyway i tested the PR and it looks good.

I've added the following:

  • When all windows are hidden, the first one to be shown becomes the new main window.
  • If the main window is hidden, the one that has the focus becomes the new main window.
  • If no window has the focus (for example if they are behind another app), the last opened window becomes the new main window.

Seems to work fine. My only concern is about the timer in Linux, it works in my distro, but we might need to increase it a bit if it's not enough in others.

Could you maybe elaborate how i should test these changes

@Devenor

Devenor commented Oct 14, 2025

Copy link
Copy Markdown
Contributor Author

Hey @efb4f5ff-1298-471a-8973-3d47447115dc , no worries, I imagined you'd be busy!

If you've tested the PR in all your distros and it works, it should be fine as it is. I just wanted to make sure because I had to add a small delay to check if another window has the focus after minimizing the main one, and we had some issues when using a timer on Linux in my first PR (the occasional flicker, if you still remember)

In any case, if the timer were too short, the only thing that could happen is that the new main window would become the first visible one found, which may or may not be the one that has the focus.

@FreeTubeBot FreeTubeBot merged commit faaf92a into FreeTubeApp:development Oct 30, 2025
6 checks passed
@github-actions github-actions Bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 30, 2025
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Nov 3, 2025
* development: (325 commits)
  Replace vue-portal dependency with Vue's built-in <Teleport> component (FreeTubeApp#8207)
  Update to Vue 3 (FreeTubeApp#8094)
  Translated using Weblate (Basque)
  Translated using Weblate (Hungarian)
  Translated using Weblate (Icelandic)
  Translated using Weblate (Turkish)
  Properly fix CORS in PO token web views (FreeTubeApp#8203)
  Translated using Weblate (Italian)
  Translated using Weblate (Norwegian Bokmål)
  Translated using Weblate (French)
  Configure nedb to always clean up corrupted data (FreeTubeApp#8202)
  Translated using Weblate (Portuguese (Brazil))
  Add video paused check to frame shortcuts (FreeTubeApp#8200)
  Fix toast with timeout 0 will be displayed for default 3s (FreeTubeApp#8168)
  Translated using Weblate (Chinese (Simplified Han script))
  Change containing text input limit (FreeTubeApp#8174)
  Translated using Weblate (Dutch)
  Add support for AppImageUpdate (FreeTubeApp#8153)
  Added New Window option to Tray (FreeTubeApp#7995)
  Translated using Weblate (Japanese)
  ...
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Nov 3, 2025
* development: (21 commits)
  Replace vue-portal dependency with Vue's built-in <Teleport> component (FreeTubeApp#8207)
  Update to Vue 3 (FreeTubeApp#8094)
  Translated using Weblate (Basque)
  Translated using Weblate (Hungarian)
  Translated using Weblate (Icelandic)
  Translated using Weblate (Turkish)
  Properly fix CORS in PO token web views (FreeTubeApp#8203)
  Translated using Weblate (Italian)
  Translated using Weblate (Norwegian Bokmål)
  Translated using Weblate (French)
  Configure nedb to always clean up corrupted data (FreeTubeApp#8202)
  Translated using Weblate (Portuguese (Brazil))
  Add video paused check to frame shortcuts (FreeTubeApp#8200)
  Fix toast with timeout 0 will be displayed for default 3s (FreeTubeApp#8168)
  Translated using Weblate (Chinese (Simplified Han script))
  Change containing text input limit (FreeTubeApp#8174)
  Translated using Weblate (Dutch)
  Add support for AppImageUpdate (FreeTubeApp#8153)
  Added New Window option to Tray (FreeTubeApp#7995)
  Translated using Weblate (Japanese)
  ...
PikachuEXE added a commit to NishPatel101/FreeTube that referenced this pull request Nov 3, 2025
* development: (38 commits)
  Replace vue-portal dependency with Vue's built-in <Teleport> component (FreeTubeApp#8207)
  Update to Vue 3 (FreeTubeApp#8094)
  Translated using Weblate (Basque)
  Translated using Weblate (Hungarian)
  Translated using Weblate (Icelandic)
  Translated using Weblate (Turkish)
  Properly fix CORS in PO token web views (FreeTubeApp#8203)
  Translated using Weblate (Italian)
  Translated using Weblate (Norwegian Bokmål)
  Translated using Weblate (French)
  Configure nedb to always clean up corrupted data (FreeTubeApp#8202)
  Translated using Weblate (Portuguese (Brazil))
  Add video paused check to frame shortcuts (FreeTubeApp#8200)
  Fix toast with timeout 0 will be displayed for default 3s (FreeTubeApp#8168)
  Translated using Weblate (Chinese (Simplified Han script))
  Change containing text input limit (FreeTubeApp#8174)
  Translated using Weblate (Dutch)
  Add support for AppImageUpdate (FreeTubeApp#8153)
  Added New Window option to Tray (FreeTubeApp#7995)
  Translated using Weblate (Japanese)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants