mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[PR #1084] System tray improvements #1753
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#1753
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/debauchee/barrier/pull/1084
Author: @ahayzen
Created: 3/2/2021
Status: 🔄 Open
Base:
master← Head:1024-system-tray-changes📝 Commits (5)
2080784Do not wait for tray to become available00565faWhen the last window closes if there is no system tray close the app35cc645Do not hide the window to system tray when minimising if not available3e7e7b1Disable system tray related settings if not availabled0df871Ensure that window is not hidden with no system tray after startup📊 Changes
6 files changed (+65 additions, -40 deletions)
View changed files
📝
src/gui/src/MainWindow.cpp(+40 -1)📝
src/gui/src/MainWindow.h(+3 -0)📝
src/gui/src/QBarrierApplication.cpp(+15 -0)📝
src/gui/src/QBarrierApplication.h(+3 -0)📝
src/gui/src/SettingsDialog.cpp(+4 -0)📝
src/gui/src/main.cpp(+0 -39)📄 Description
I have changed how the timer works for ensuring that the user does not get stuck with a hidden window. Instead of always waiting for the system tray to become available before deciding if to disable autohide or show the window. Now we perform showing the window or starting hidden. If we start hidden and the systemtray was not available, we then wait a period of time to check it's not being slow at becoming available, then we force the window to show.
As you can see in the table below this removes the potential for waiting at startup from the 4 different startup procedures to just 1. And this use case is an unlikely scenario now that the settings are disabled if the system tray isn't available (the user would have had to enable autohide when the system tray was available and then disable the system tray on their system).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.