Merge pull request #140 from Spythere/development

hotfix: checkpoints filtering for unknown sceneries
This commit is contained in:
Spythere
2025-09-17 20:06:19 +02:00
committed by GitHub
3 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
<main class="app_main">
<router-view v-slot="{ Component }">
<keep-alive exclude="SceneryView">
<keep-alive>
<component :is="Component" :key="$route.name" />
</keep-alive>
</router-view>
@@ -118,6 +118,7 @@ export default defineComponent({
align-items: center;
width: 3em;
height: 3em;
margin: 0.25em;
border: 2px solid #4e4e4e;
+6 -2
View File
@@ -333,8 +333,12 @@ export const useMainStore = defineStore('mainStore', {
const missingCheckpointsToAdd = unknownSceneryCheckpoints.get(scenery.name);
if (missingCheckpointsToAdd) {
checkpoints.push(...missingCheckpointsToAdd);
scenery.missingCheckpoints.push(...missingCheckpointsToAdd);
[...missingCheckpointsToAdd].forEach((cp) => {
if (cp.toLowerCase() == scenery.name.toLowerCase()) return;
checkpoints.push(cp);
scenery.missingCheckpoints.push(cp);
});
}
const uniqueTrainIds: string[] = [];