feat: Add conditional backend check for plugins

This commit is contained in:
Fabio Lenherr / DashieTM 2024-04-09 21:51:38 +02:00
parent ebbd226676
commit 65f8bd80be

View file

@ -149,17 +149,17 @@ impl ReSetWindow {
let listeners = self_imp.listeners.clone();
(plugin.frontend_startup)();
let mut found = false;
dbg!(&capabilities);
for capability in plugin_capabilities {
dbg!(&capability);
if capabilities.contains(&capability.to_string()) {
found = true;
break;
if plugin_capabilities.1 {
let mut found = false;
for capability in plugin_capabilities.0.iter() {
if capabilities.contains(&capability.to_string()) {
found = true;
break;
}
}
if !found {
continue;
}
}
if !found {
continue;
}
let event = Rc::new(
move |reset_main: FlowBox,