From 61cfe87e947212f5d92f1764c9b6ef56263b12da Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Thu, 1 Feb 2024 19:10:34 +0100 Subject: [PATCH] desktop_entries: Fix activate context --- plugins/src/desktop_entries/mod.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/plugins/src/desktop_entries/mod.rs b/plugins/src/desktop_entries/mod.rs index 1363064..c21cc14 100644 --- a/plugins/src/desktop_entries/mod.rs +++ b/plugins/src/desktop_entries/mod.rs @@ -237,14 +237,11 @@ impl App { } }; - 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;