Skip to content

Commit

Permalink
Fix video pausing when saving a screenshot to the default folder
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue committed Feb 1, 2025
1 parent b6b97fb commit 4982185
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1593,7 +1593,7 @@ export default defineComponent({
const filenameWithExtension = `${filename}.${format}`

const wasPlaying = !video_.paused
if (wasPlaying) {
if ((!process.env.IS_ELECTRON || screenshotAskPath.value) && wasPlaying) {
video_.pause()
}

Expand Down Expand Up @@ -1630,7 +1630,7 @@ export default defineComponent({
} finally {
canvas.remove()

if (wasPlaying) {
if ((!process.env.IS_ELECTRON || screenshotAskPath.value) && wasPlaying) {
video_.play()
}
}
Expand Down

0 comments on commit 4982185

Please sign in to comment.