Skip to content

Commit 5a15a3c

Browse files
zrichardetZachery Thomas Richardet
andauthored
Issue 209 Turn on scene a by default when auto-scene selection results are recieved (#224)
* display scene a when auto selection is enabled and theres a tile available * remove unnecessary function --------- Co-authored-by: Zachery Thomas Richardet <zachery@Mac.lan>
1 parent 1778ed0 commit 5a15a3c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/components/ProcessingPanel.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ watch(
148148
secondActiveTileId.value = new URL(windowB).pathname.split('/').pop() || null
149149
150150
sceneSelectionStatus.value = true
151+
152+
// Display Scene A image by default when auto scene selection is enabled
153+
if (settings.value.autoSceneSelection && activeTileId.value) {
154+
stacPreviewTileId.value = activeTileId.value
155+
}
156+
151157
if (!settings.value.expertMode) {
152158
showSuccess(
153159
'Scenes have been selected automatically. You can start processing or adjust the scenes or your settings.',
@@ -262,6 +268,14 @@ watch(sceneSelectionStatus, (newValue) => {
262268
secondActiveTileId.value = null
263269
}
264270
})
271+
272+
// Display Scene A image by default when auto scene selection is enabled and a scene is selected
273+
watch([settings.value.autoSceneSelection, activeTileId], ([autoSelection, tileId]) => {
274+
if (autoSelection && tileId) {
275+
stacPreviewTileId.value = tileId
276+
}
277+
})
278+
265279
watch(map, () => loadAvailableTiles())
266280
267281
const modelTitle = computed(() => {

0 commit comments

Comments
 (0)