Skip to content

Commit

Permalink
Fallback is bezel
Browse files Browse the repository at this point in the history
The comment reports it will fall back to bezel but then tries to use
Primer -- this fixes that.
  • Loading branch information
n8henrie committed Oct 15, 2023
1 parent 04999aa commit 02c3365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Quicksilver/Code-QuickStepCore/QSInterfaceMediator.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@implementation QSRegistry (QSCommandInterface)
- (NSString *)preferredCommandInterfaceID {
NSString *key = [[NSUserDefaults standardUserDefaults] stringForKey:kQSCommandInterfaceControllers];
if (![[self tableNamed:kQSCommandInterfaceControllers] objectForKey:key]) key = @"QSPrimerInterfaceController";
if (![[self tableNamed:kQSCommandInterfaceControllers] objectForKey:key]) key = @"QSBezelInterfaceController";
return key;
}

Expand All @@ -23,7 +23,7 @@ - (QSInterfaceController*)preferredCommandInterface {
[prefInstances setObject:mediator forKey:kQSCommandInterfaceControllers];
} else {
QSShowNotifierWithAttributes([NSDictionary dictionaryWithObjectsAndKeys:@"QSNotification", QSNotifierType, [QSResourceManager imageNamed:kQSBundleID], QSNotifierIcon, NSLocalizedString(@"Interface Changed", nil), QSNotifierTitle, NSLocalizedString(@"Interface could not be loaded. Switching to Bezel",nil), QSNotifierText, nil]);
mediator = [self instanceForKey:@"QSPrimerInterfaceController" inTable:kQSCommandInterfaceControllers];
mediator = [self instanceForKey:@"QSBezelnterfaceController" inTable:kQSCommandInterfaceControllers];
[prefInstances setObject:mediator forKey:kQSCommandInterfaceControllers];
}
}
Expand Down

0 comments on commit 02c3365

Please sign in to comment.