Closed selvanair closed 7 months ago
I like the idea, but do not feel qualified today to ACK or NAK the code. @lstipakov something for you?
Hi,
On Windows 11 there are two issues;
OpenVPN GUI
there.linking to my comment https://github.com/OpenVPN/openvpn-gui/issues/666#issuecomment-1938927344
Force pushed with changes:
(Moving this to the right place) Pushed two commits: (i) Remove title and prepend it to the message. And make tip_msg local. (ii) Position the tooltip window at a fixed distance above the icon instead of tracking the mouse position (figured how to do this :)
On Win11 the tip window should probably have more rounded corners, but will leave it at that.
Built-in tray notification icon has a tip text length limit of 128 characters which is often limited for showing the connected profile name, connected since time and IP addresses. If the profile name is long the IP numbers could get truncated.
Fix by using a custom tooltip window and display it when mouse hovers over the icon. As the status bar need not be at the bottom of the screen (could be at right, left or top as well), the location of the window is chosen based on the mouse co-ordinates that trigger the hover event.
In case of errors while setting up the tooltip window, fall back to the current behaviour.
If the message is too long to include time and IP, truncate the profile name part of the message.
Fixes issue #666
Edit: force pushed after fixing some typos in commit message and buggy text truncation logic.
old
new