implemented 'enabled'

This commit is contained in:
2026-04-04 04:24:09 +02:00
parent 071d973fea
commit cb8b641447
6 changed files with 160 additions and 37 deletions
+4
View File
@@ -12,6 +12,10 @@ pub async fn dispatch(
#[allow(unused)] state: &AppReceivers,
#[allow(unused)] args: &[&str],
) -> FluxoResult<WaybarOutput> {
if !config.is_module_enabled(module_name) {
return Err(FluxoError::Disabled(module_name.to_string()));
}
match module_name {
#[cfg(feature = "mod-network")]
"net" | "network" => {