fix: prevent closing recording popup (#9125)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2025-05-28 13:07:13 +07:00 committed by GitHub
parent ceaa12b367
commit 919a8bb62f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -315,8 +315,12 @@
)
}
export function canClose (): boolean {
return state === null || state.state === 'stopped'
}
function handleClose (): void {
if (state === null || state.state === 'stopped') {
if (canClose()) {
dispatch('close')
}
}