Merge pull request #206 from pop-os/fix-activatecontext_jammy

This commit is contained in:
Victoria Brekenfeld 2024-02-07 09:41:34 +01:00 committed by GitHub
commit c233078fb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;