Skip to content

Commit

Permalink
Fix still setting menu configuration if it fails
Browse files Browse the repository at this point in the history
  • Loading branch information
joeljfischer committed Sep 9, 2021
1 parent 7aacb05 commit e3d8ab0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SmartDeviceLink/private/SDLMenuManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ - (void)setMenuConfiguration:(SDLMenuConfiguration *)menuConfiguration {
SDLMenuConfigurationUpdateOperation *configurationUpdateOp = [[SDLMenuConfigurationUpdateOperation alloc] initWithConnectionManager:self.connectionManager windowCapability:self.windowCapability newMenuConfiguration:menuConfiguration configurationUpdatedHandler:^(SDLMenuConfiguration *newMenuConfiguration, NSError *_Nullable error) {
if (error != nil) {
SDLLogE(@"Error updating menu configuration: %@", error);
return;
}
weakself.currentMenuConfiguration = newMenuConfiguration;
[weakself sdl_updateMenuReplaceOperationsWithNewMenuConfiguration];
Expand Down

0 comments on commit e3d8ab0

Please sign in to comment.