Skip to content

Commit

Permalink
🚸 Improve experience to request system permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKai77 committed Sep 3, 2023
1 parent 9d535c8 commit d54edc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Loop/Helpers/PermissionsManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ class PermissionsManager {

let alert = NSAlert()
alert.messageText = "\(Bundle.main.appName) Needs Screen Recording Permissions"
alert.informativeText = "Screen recording permissions are required to animate windows being resized."
alert.informativeText = "Screen recording permissions are required to animate windows being resized. "
+ "\(Bundle.main.appName) may need to be relaunched to reflect these changes."
alert.runModal()

CGRequestScreenCaptureAccess()
Expand Down
2 changes: 1 addition & 1 deletion Loop/Settings/Views/GeneralSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ struct GeneralSettingsView: View {

Spacer()

Button("Refresh Status", action: {
Button("Request Access", action: {
PermissionsManager.requestAccess()
self.isAccessibilityAccessGranted = PermissionsManager.Accessibility.getStatus()
self.isScreenRecordingAccessGranted = PermissionsManager.ScreenRecording.getStatus()
Expand Down

0 comments on commit d54edc2

Please sign in to comment.