Display Current User Status and Unread Message Amount in Status Tray Icon #103
Reference in New Issue
Block a user
No description provided.
Delete Branch "f/enhanced-status-tray-icon"
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?
Fixes #12
@DieGurke please verify that this works properly on Microsoft Windows.
👍
First I don't really like the fact that the status tray icon is only displayed if hide on close is enabled. It should rather be enabled at all times.
I suggest displaying the unread messages amount when the status tray icon is clicked just like the operations you can perform.
Additionally I noticed a severe bug: if you have unread messages and close the clien't down, the next time you open it again you have the double amount of unread messeges displayed as the client received them twice each. (The number in the status tray icon is more or less comlpetely random after the second start it seems). Please investigate on this!
See #104
@DieGurke the issue on Arch Linux arises from the fact that KDE's status tray API has evolved from what AWT's
StatusTrayhas been designed for (Java 5).The
StatusTrayIconruns using a legacy API which doesn't seem to handle scaling the same way Eclipse or the rest of Envoy does.Apart from writing platform-specific C code using JNI / JNA, we cannot do much about this, however @delvh pointed out to me that DPI scaling can actually work without the explicit setting of environment variables.
I will look into the issue you describe for Microsoft Windows, however.
@DieGurke @kske I guess I know where this bug is originating from: IIRC,
loadUserDatagets called twice when using token authentication. Each time, the chats get reloaded. And as thetotalUnreadAmountalways gets updated whenreadObjectgets called, it'll show twice the amount of messages. That is my semi-educated guess.@DieGurke as long as the default value stays
false, I have nothing against it.Basst
Sry Baschdt