feat: Allow plugins to signal to deactivate themselves

Necessary when a plugin is unsupported
This commit is contained in:
Michael Aaron Murphy 2021-08-20 18:44:22 +02:00
parent 5ce96c624b
commit 6efad71f0e
3 changed files with 14 additions and 2 deletions

View file

@ -72,11 +72,13 @@ pub enum PluginResponse {
Clear,
/// Close the launcher.
Close,
// Additional options for launching a certain item
// Additional options for launching a certain item.
Context {
id: Indice,
options: Vec<ContextOption>,
},
/// Instruct the launcher service to deactivate this plugin.
Deactivate,
// Notifies that a .desktop entry should be launched by the frontend.
DesktopEntry {
path: PathBuf,