Skip to content

Commit

Permalink
Increase delay
Browse files Browse the repository at this point in the history
  • Loading branch information
danqing committed Jan 22, 2023
1 parent 915a188 commit 786029b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Pinch.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@
CODE_SIGN_ENTITLEMENTS = Pinch/Pinch.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3;
CURRENT_PROJECT_VERSION = 5;
DEVELOPMENT_ASSET_PATHS = "\"Pinch/Preview Content\"";
DEVELOPMENT_TEAM = 4T2UC784XJ;
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -466,7 +466,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 13.0;
MARKETING_VERSION = 1.1.1;
MARKETING_VERSION = 1.2;
PRODUCT_BUNDLE_IDENTIFIER = io.danqing.Pinch;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
Expand All @@ -488,7 +488,7 @@
CODE_SIGN_ENTITLEMENTS = Pinch/Pinch.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3;
CURRENT_PROJECT_VERSION = 5;
DEVELOPMENT_ASSET_PATHS = "\"Pinch/Preview Content\"";
DEVELOPMENT_TEAM = EWJAR4GTP4;
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -502,7 +502,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 13.0;
MARKETING_VERSION = 1.1.1;
MARKETING_VERSION = 1.2;
PRODUCT_BUNDLE_IDENTIFIER = io.danqing.Pinch;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
Expand Down
4 changes: 1 addition & 3 deletions Pinch/PinchApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,14 @@ struct PinchApp: App {

@State private var startAtLogin = SMAppService.mainApp.status == .enabled

private var prefPanesSupport: Bundle!

var body: some Scene {
MenuBarExtra("Pincher", systemImage: "arrow.up.left.and.arrow.down.right.circle.fill") {
Button("Fix Pinch Gesture") {
let task = Process.launchedProcess(launchPath: "/usr/bin/killall", arguments: ["Dock"])
task.waitUntilExit()

toggleTrackpad(mode: false)
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
toggleTrackpad(mode: true)
}
}
Expand Down

0 comments on commit 786029b

Please sign in to comment.