status-area: Don't try to call activate() in status_menu
This was added in https://github.com/pop-os/cosmic-applets/pull/1143, but I don't think this code will ever be reached? This code is called when activating an item in a menu, so it should only apply when there is a menu.
This commit is contained in:
parent
6e99ad42b5
commit
468017654c
1 changed files with 0 additions and 8 deletions
|
|
@ -121,14 +121,6 @@ impl State {
|
|||
let item_proxy = self.item.item_proxy().clone();
|
||||
|
||||
let Some(menu_proxy) = self.item.menu_proxy().cloned() else {
|
||||
tokio::spawn(async move {
|
||||
let _ = item_proxy.provide_xdg_activation_token(token).await;
|
||||
if let Err(err) = item_proxy.activate(0, 0).await {
|
||||
tracing::error!(
|
||||
"Error activating status notifier item without menu proxy: {err:?}"
|
||||
);
|
||||
}
|
||||
});
|
||||
return iced::Task::none();
|
||||
};
|
||||
tokio::spawn(async move {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue