Commit e6e0a8d2 authored by Nico Mack's avatar Nico Mack

Added code to activate bundles with their default attribute set true

parent 265d4bf0
......@@ -32,6 +32,7 @@ import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map.Entry;
/**
* @author Nico Mack [nico.mack@list.lu]
......@@ -69,6 +70,12 @@ public class ModalWidget extends TetherableWidget {
coronaBundles = builder.coronaBundles;
activeBundles = new ArrayList<>();
for (Entry<String, CoronaBundle> entry : coronaBundles.entries()) {
if (entry.getValue().isDefault()) {
this.activateBundle(entry.getKey());
}
}
}
// ---------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment