mirror of
https://github.com/amir1376/ab-download-manager.git
synced 2025-02-20 11:43:24 +08:00
fix tray name on linux (#363)
This commit is contained in:
parent
d031450bf4
commit
f50e3e10e8
@ -23,7 +23,8 @@ class ComposeSystemTrayForLinux : IComposeSystemTray {
|
||||
menu: List<MenuItem>,
|
||||
onClick: () -> Unit
|
||||
) {
|
||||
val systemTray: SystemTray? = remember { SystemTray.get() }
|
||||
val tooltipString = tooltip.rememberString()
|
||||
val systemTray: SystemTray? = remember { SystemTray.get(tooltipString) }
|
||||
if (systemTray == null) {
|
||||
System.err.println("System tray is not supported")
|
||||
return
|
||||
@ -36,7 +37,6 @@ class ComposeSystemTrayForLinux : IComposeSystemTray {
|
||||
GlobalLayoutDirection,
|
||||
)
|
||||
}
|
||||
val tooltipString = tooltip.rememberString()
|
||||
|
||||
LaunchedEffect(awtImage) {
|
||||
systemTray.setImage(awtImage)
|
||||
|
Loading…
x
Reference in New Issue
Block a user