From e3d8ab0d27f0169941899e5951045948bb87b1d7 Mon Sep 17 00:00:00 2001 From: Joel Fischer Date: Thu, 9 Sep 2021 08:37:20 -0400 Subject: [PATCH] Fix still setting menu configuration if it fails --- SmartDeviceLink/private/SDLMenuManager.m | 1 + 1 file changed, 1 insertion(+) diff --git a/SmartDeviceLink/private/SDLMenuManager.m b/SmartDeviceLink/private/SDLMenuManager.m index 9bae9f7b8..731449dd5 100644 --- a/SmartDeviceLink/private/SDLMenuManager.m +++ b/SmartDeviceLink/private/SDLMenuManager.m @@ -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];