Skip to content

Commit

Permalink
Merge pull request #1188 from surajbobade/single-screenshot-#984
Browse files Browse the repository at this point in the history
fix: lock screenshot if screenshot capturing already in progress
  • Loading branch information
manojVivek authored Jan 22, 2024
2 parents ba4dd5e + d6b9073 commit e9eb4e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions desktop-app/src/renderer/components/ToolBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ const ToolBar = () => {
}

const screenshotCaptureHandler = async () => {
if (isCapturingScreenshot) {
return;
}

dispatch(setIsCapturingScreenshot(true));
const webViews: NodeListOf<Electron.WebviewTag> =
document.querySelectorAll('webView');
Expand Down

0 comments on commit e9eb4e7

Please sign in to comment.