Fix reset section box to always fully reset
This commit is contained in:
@@ -72,7 +72,7 @@ const emit = defineEmits<{
|
||||
const { getShortcutDisplayText, shortcuts, registerShortcuts } = useViewerShortcuts()
|
||||
const {
|
||||
toggleSectionBox,
|
||||
resetSectionBox,
|
||||
resetSectionBoxCompletely,
|
||||
closeSectionBox,
|
||||
isSectionBoxEnabled,
|
||||
isSectionBoxVisible
|
||||
@@ -188,7 +188,7 @@ const onReset = () => {
|
||||
resetExplode()
|
||||
}
|
||||
if (activePanel.value === ActivePanel.sectionBox) {
|
||||
resetSectionBox()
|
||||
resetSectionBoxCompletely()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -84,12 +84,18 @@ export function useSectionBoxUtilities() {
|
||||
}
|
||||
}
|
||||
|
||||
const resetSectionBoxCompletely = () => {
|
||||
sectionBox.value = null
|
||||
visible.value = false
|
||||
}
|
||||
|
||||
return {
|
||||
isSectionBoxEnabled,
|
||||
isSectionBoxVisible,
|
||||
isSectionBoxEdited,
|
||||
toggleSectionBox,
|
||||
resetSectionBox,
|
||||
resetSectionBoxCompletely,
|
||||
sectionBox,
|
||||
closeSectionBox
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user