feat(core): wire up suppression middleware (enable=false in config)

This commit is contained in:
Federico Terzi 2021-08-22 20:15:01 +02:00
parent c624ca676d
commit 2129494ae3
2 changed files with 7 additions and 0 deletions

View File

@ -166,3 +166,9 @@ impl<'a> espanso_engine::process::UndoEnabledProvider for ConfigManager<'a> {
self.active().undo_backspace()
}
}
impl<'a> espanso_engine::process::EnabledStatusProvider for ConfigManager<'a> {
fn is_config_enabled(&self) -> bool {
self.active().enable()
}
}

View File

@ -189,6 +189,7 @@ pub fn initialize_and_spawn(
&config_manager,
&combined_match_cache,
&config_manager,
&config_manager,
);
let event_injector = EventInjectorAdapter::new(&*injector, &config_manager);