Skip to content

Commit c233078

Browse files
authored
Merge pull request #206 from pop-os/fix-activatecontext_jammy
2 parents 091581c + 61cfe87 commit c233078

File tree

1 file changed

+5
-8
lines changed
  • plugins/src/desktop_entries

1 file changed

+5
-8
lines changed

plugins/src/desktop_entries/mod.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,11 @@ impl<W: AsyncWrite + Unpin> App<W> {
237237
}
238238
};
239239

240-
let response = match context {
241-
0 => PluginResponse::DesktopEntry {
242-
path: entry.path.clone(),
243-
gpu_preference,
244-
action_name: (is_cosmic && context >= gpu_len)
245-
.then(|| entry.actions[(context - gpu_len) as usize].clone()),
246-
},
247-
_ => return,
240+
let response = PluginResponse::DesktopEntry {
241+
path: entry.path.clone(),
242+
gpu_preference,
243+
action_name: (is_cosmic && context >= gpu_len)
244+
.then(|| entry.actions[(context - gpu_len) as usize].clone()),
248245
};
249246

250247
send(&mut self.tx, response).await;

0 commit comments

Comments
 (0)