borrowed value fix
Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user