Skip to content

Commit

Permalink
✨ Disable animateWindowResizes if screen recording access is revoked
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKai77 committed Sep 3, 2023
1 parent d54edc2 commit 0ac1e2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Loop/Settings/Views/GeneralSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ struct GeneralSettingsView: View {
.onAppear {
self.isAccessibilityAccessGranted = PermissionsManager.Accessibility.getStatus()
self.isScreenRecordingAccessGranted = PermissionsManager.ScreenRecording.getStatus()

if !isScreenRecordingAccessGranted {
self.animateWindowResizes = false
}
}
}
})
Expand Down

0 comments on commit 0ac1e2e

Please sign in to comment.