From 0128ea00ec4c8ca45dcf89e1550426a452201e8a Mon Sep 17 00:00:00 2001 From: Lorenzo Blasa Date: Mon, 18 Sep 2023 07:42:36 -0700 Subject: [PATCH] Restart/shutdown when settings are applied Summary: Shutdown flipper server whenever a restart is required. Reviewed By: antonk52 Differential Revision: D49369884 fbshipit-source-id: 62d8aa9dd58408dc351617bb09df4509a819ab2f --- desktop/flipper-ui-browser/src/initializeRenderHost.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/desktop/flipper-ui-browser/src/initializeRenderHost.tsx b/desktop/flipper-ui-browser/src/initializeRenderHost.tsx index c7a50278528..00ab059e6bb 100644 --- a/desktop/flipper-ui-browser/src/initializeRenderHost.tsx +++ b/desktop/flipper-ui-browser/src/initializeRenderHost.tsx @@ -169,9 +169,7 @@ export function initializeRenderHost( ); }, restartFlipper() { - window.flipperShowMessage?.( - 'Flipper settings have changed, please quit and wait for 30 seconds before re-launching for the changes to take effect', - ); + flipperServer.exec('shutdown'); }, serverConfig: flipperServerConfig, GK(gatekeeper) {