desktop_entries: Fix activate context
This commit is contained in:
parent
091581c362
commit
61cfe87e94
1 changed files with 5 additions and 8 deletions
|
|
@ -237,14 +237,11 @@ impl<W: AsyncWrite + Unpin> App<W> {
|
|||
}
|
||||
};
|
||||
|
||||
let response = match context {
|
||||
0 => PluginResponse::DesktopEntry {
|
||||
path: entry.path.clone(),
|
||||
gpu_preference,
|
||||
action_name: (is_cosmic && context >= gpu_len)
|
||||
.then(|| entry.actions[(context - gpu_len) as usize].clone()),
|
||||
},
|
||||
_ => return,
|
||||
let response = PluginResponse::DesktopEntry {
|
||||
path: entry.path.clone(),
|
||||
gpu_preference,
|
||||
action_name: (is_cosmic && context >= gpu_len)
|
||||
.then(|| entry.actions[(context - gpu_len) as usize].clone()),
|
||||
};
|
||||
|
||||
send(&mut self.tx, response).await;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue