borrowed value fix

Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
FTCHD
2025-10-08 13:22:44 +02:00
parent af2b7b1c7c
commit 77003926d9
+1 -1
View File
@@ -49,7 +49,7 @@ fn is_tray_supported() -> bool {
};
if dbus.name_has_owner(bus_name).unwrap_or(false) {
// Try to read the property; if it fails but watcher exists, assume true
if let Ok(proxy) = Proxy::new(&conn, bus_name.clone(), "/StatusNotifierWatcher", "org.kde.StatusNotifierWatcher") {
if let Ok(proxy) = Proxy::new(&conn, name, "/StatusNotifierWatcher", "org.kde.StatusNotifierWatcher") {
if let Ok(registered) = proxy.get_property::<bool>("IsStatusNotifierHostRegistered") {
return registered;
}