Skip to content

Commit

Permalink
Reduce glocal selection provider timeout from 2s to 1s
Browse files Browse the repository at this point in the history
  • Loading branch information
pjrobertson committed Feb 3, 2025
1 parent 3488b38 commit 4787bc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Quicksilver/Code-QuickStepCore/QSGlobalSelectionProvider.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ - (NSPasteboard *)getSelectionFromFrontApp {
[self performSelector:@selector(invokeService) onThread:[NSThread mainThread] withObject:nil waitUntilDone:NO];
NSRunLoop *loop = [NSRunLoop currentRunLoop];
NSDate *date = [NSDate date];
while(!self->resultPboard && [date timeIntervalSinceNow] >-2) {
[loop runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
while(!self->resultPboard && [date timeIntervalSinceNow] >-1) {
[loop runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.05]];
// NSLog(@"loop");
}
// NSLog(@"got %@", resultPboard);
Expand Down

0 comments on commit 4787bc7

Please sign in to comment.