andyvorld / LGSTrayBattery

A tray app used to track battery levels of wireless Logitech mouse.
GNU General Public License v3.0
369 stars 30 forks source link

Icon gets reverted to default (no indicator) on display fusion taskbars after a while, also tooltip shows as just "tooltip" #79

Open DipsoNOR opened 9 months ago

DipsoNOR commented 9 months ago

This is probably a bit to edge case and spesific but i thought it might be worth mentioning.

I use display fusion to customize my taskbars on my secondary and tertiary monitors. It duplicates the tray from the windows taskbar.

When i start the app it shows the correct icon (the mouse with battery indicator) but after a while i reverts to the default icon that the app shows when not connected to a device) (the main taskbar shows the correct icon still however)

Also when i mouse over the app in displayfusion it shows tooltip as "tooltip" (other tray apps show correct info on mouse over)

So i suspect you are doing something in a non-standard way for the tooltip and for updating the icon that makes other apps that interact with tray items confused.

Not sure if this is something you would be able to deal with, and i understand it would be a low priority, but i though i atleast should mention it. :)

andyvorld commented 9 months ago

Which version of the program are you using? As for v3.0.0-rc.3, I had implemented rich tooltips which are a wpf window drawn at the mouse cursor rather than the default tooltip, try running v3.0.0.-rc.2 which had the native tooltips and see if that works. With regards to the wrong icon showing, I don't think I can really do much about it as I am not sure how displayfusion handles the duplication of icons.

DipsoNOR commented 9 months ago

It seems to coincide with another bug where i get both the status icon and the "blank" icon on my main tray.

Tool tip works fine with RC2

DipsoNOR commented 9 months ago

Here is how it looks on the main taskbar when i breaks: Screenshot 2023-11-29 152055

andyvorld commented 9 months ago

I don't think I would be able to do much about this issue, as it seems to be a weird interaction with how display fusion work. I will leave this issues open if anyone else have this issue when using it without display fusion.

DipsoNOR commented 9 months ago

But i think the problem is not how DF displays it per say, but that your app seems to pop open two icons pretty frequently, as per my latest screen shot.

andyvorld commented 9 months ago

I am not sure what is going on regarding your display fusion taskbar icon. As I have been using the display fusion multitaskbar for a few days now and have not noticed the issue, does it still occur when you have the display fusion taskbar turned off?

andyvorld commented 9 months ago

Regardign your tooltip issue try this, https://github.com/andyvorld/LGSTrayBattery/releases/tag/v3.0.1

And modify the appsettings.toml to have enableRichToolTips = false. You may potentially see duplicate tooltips on hover, but I believe that is an issue with how display fusion makes its own copy of the tooltip on hover.

DipsoNOR commented 9 months ago

Nice. As for the other issue. The main problem is that frequently i end up with two icons for the tray app:

image

To fix it i have to right click, click on devices and then deselect and select my mouse again. Then the "blank" or "no device" icon disappears. image

(When this happens only the "blank" icon shows on DF, but that is sort of besides the point i think)