Skip to content

Commit

Permalink
Fix changing window capture
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Dec 7, 2021
1 parent 9b1292f commit 3240eb8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,9 @@ ipc.on("enableStartup", () => {
ipc.on("disableWindowCapture", () => {
try {
window_landing.setContentProtection(true)
} catch (error) {}

try {
window_confirm.setContentProtection(true)
} catch (error) {}

Expand All @@ -1011,8 +1014,11 @@ ipc.on("disableWindowCapture", () => {
*/
ipc.on("enableWindowCapture", () => {
try {
window_landing.setContentProtection(false)
window_confirm.setContentProtection(false)
window_landing.setContentProtection(true)
} catch (error) {}

try {
window_confirm.setContentProtection(true)
} catch (error) {}

window_application.setContentProtection(false)
Expand Down

0 comments on commit 3240eb8

Please sign in to comment.