Commit 3f18d3ad authored by Volker Krause's avatar Volker Krause
Browse files

Only include countries from enabled backends

parent 9e1db0c2
......@@ -62,6 +62,9 @@ Kirigami.ScrollablePage {
model: {
var countries = new Array();
for (const b of publicTransportManager.backends) {
if (!publicTransportManager.isBackendEnabled(b.identifier)) {
continue;
}
for (const t of [CoverageArea.Realtime, CoverageArea.Regular, CoverageArea.Any]) {
for (const c of b.coverageArea(t).regions) {
if (c != 'UN' && c != 'EU') {
......
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