Skip to content

Commit

Permalink
Fix accessibility permission prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
thealpa committed Oct 17, 2022
1 parent fb2b19b commit f3c0073
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SaneSideButtons.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
CODE_SIGN_ENTITLEMENTS = SaneSideButtons/SaneSideButtons.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 11;
CURRENT_PROJECT_VERSION = 12;
DEVELOPMENT_TEAM = B7HSFEB698;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -345,7 +345,7 @@
CODE_SIGN_ENTITLEMENTS = SaneSideButtons/SaneSideButtons.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 11;
CURRENT_PROJECT_VERSION = 12;
DEVELOPMENT_TEAM = B7HSFEB698;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down
3 changes: 3 additions & 0 deletions SaneSideButtons/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ private extension AppDelegate {
if self.hasPermissions() {
SwipeSimulator.shared.setupEventTap()
} else {
if self.getEventPermission() {
SwipeSimulator.shared.setupEventTap()
}
Task {
await self.promptPermissions()
}
Expand Down

0 comments on commit f3c0073

Please sign in to comment.